use data strcutures and algorithms (Java) to do this project : Account Managemen
ID: 3607128 • Letter: U
Question
use data strcutures and algorithms (Java) to do this project : Account Management System for YummyPizza The purpose of this project is to create an application that manages the accounts for YummyPizza. The basic requirements are sales, invoices, salaries, bills.
5 elements: sales, invoices, salaries,bills,menu
for sales:
number Pizzas Sold
• What kinds of pizzas were sold
• number of Drinks sold
• Types of drinks sold
for invoices: number of invoice • Date/time issued • Quantity of item • Item sold • Cost of individual item • Total cost of item • Subtotal • Tax • Delivery fee • total
for salaries: Number of employees • Name of employee • SSN of employee • Wage • Hours worked/week • Employee phone number • Employee Address
for bills:
• Electricity
• Internet/phone
• Water
• Insurance
• Rent
• Cost of ingredients
• Cost of employee paycheck.
Menu: 3 Pizzas 3 Drinks:
•Cheese Pizza
•Pepperoni Pizza
•Hawaiian Pizza
•Coke
•Diet Coke
Apple Juice
Explanation / Answer
The intuitive answer to this problem is that they should be paid in the proportion to what they put in. However, the answer to this puzzle isn’t $3 and $5.
The most important thing to note in this puzzle is that Ross and Rachel consume a part of what they put in. The key to the puzzle is that Ross and Rachel do not give all their pizzas to Joey: they eat 8/3 pizzas (i.e 48 / 3 = 16 slices) of the pizzas themselves each.
There are three people eating 8 pizzas, with each person getting an equal share. This means each person eats 8/3 of the pizzas. So let’s see what each person contributes. Joey pays $8.
Ross eats a total of 8/3 pizzas (16 slices).
He brought a total of 5 pizzas (5 * 6 = 30 slices)
Hence, his net contribution becomes: 5 – (8 / 3) = 7 / 3 pizzas(14 slices).
Rachel eats a total of 8/3 pizzas too(16 slices).
She brought a total of 3 Pizzas. Therefore, she only gives up 1/3 pizzas (i.e. 2 slices)
Hence, her net contribution becomes: 3 – (8 / 3) = 1/3 pizzas (2 slices).
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.