Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant. That person is very bad at math and recently discovered that most customers have been significantly undercharged for meals. You have been approached to create a computer program that will accurately calculate bills for each customer. Kids, under 5, eat free. Teens and seniors get a 25% discount. Also, Food and beverage is taxed at 5%. No tax for anything a senior or teen orders and eats. Every person who eats at this restaurant orders exactly three items. Never greater, never fewer. The menu is limited: Menu Item Price Soup 2.50 Wings .15 each Burger 4.95 Chicken sandwich 5.95 Fries 1.99 Pie 2.95 Ice cream 2.99 Soft drink 1.50 Coffee 1.00 Write a program that will accurately determine a bill. Programs must be tested. In order to test this program, use the following scenario. A family stops at the restaurant for lunch. The family is composed of a middle aged mother and father named Bill and Nancy. They have a 2-year old child named Jesse. They are traveling with Nancy's elderly grandmother, Sarah. Everybody decided to order a burger. Nancy and Jesse order a soft drink. Nancy and Sarah order soup. Bill orders 5 wings. Bill and Sarah order coffee. Jesse orders ice cream. Run your program one time for each person and determine the grand total this family would owe on their bill. Grading criteria % variables named descriptively 20 user friendly I/O 20 decisions for pricing 20 decisions for tax 20 correct total 20 TOTAL 100
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
I am having issues figuring out how to do this code with no array list and no array collections. I know this Java program will need dual arrays.
this program will need to be in java
Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant. That person is very bad at math and recently discovered that most customers have been significantly undercharged for meals.
You have been approached to create a computer program that will accurately calculate bills for each customer.
- Kids, under 5, eat free.
- Teens and seniors get a 25% discount.
Also,
- Food and beverage is taxed at 5%.
- No tax for anything a senior or teen orders and eats.
Every person who eats at this restaurant orders exactly three items. Never greater, never fewer.
The menu is limited:
Menu Item |
Price |
Soup |
2.50 |
Wings |
.15 each |
Burger |
4.95 |
Chicken sandwich |
5.95 |
Fries |
1.99 |
Pie |
2.95 |
Ice cream |
2.99 |
Soft drink |
1.50 |
Coffee |
1.00 |
Write a program that will accurately determine a bill.
Programs must be tested. In order to test this program, use the following scenario.
A family stops at the restaurant for lunch. The family is composed of a middle aged mother and father named Bill and Nancy. They have a 2-year old child named Jesse. They are traveling with Nancy's elderly grandmother, Sarah.
Everybody decided to order a burger. Nancy and Jesse order a soft drink. Nancy and Sarah order soup. Bill orders 5 wings. Bill and Sarah order coffee. Jesse orders ice cream.
Run your program one time for each person and determine the grand total this family would owe on their bill.
Grading criteria % |
|
variables named descriptively |
20 |
user friendly I/O |
20 |
decisions for pricing |
20 |
decisions for tax |
20 |
correct total |
20 |
TOTAL |
100 |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images