subject

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. 1. Kids, under 5, eat free.
2. Teens and seniors get a 25% discount.
Also,
1. Food and beverage is taxed at 5%.
2. 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.
To earn full credit for this assignment, you MUST create a table for your test cases.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Analyze the following code. int x = 1; while (0 < x) & & (x < 100) system.out.println(x++); a. the loop runs forever. b. the code does not compile because the loop body is not in the braces. c. the code does not compile because (0 < x) & & (x < 100) is not enclosed in a pair of parentheses. d. the numbers 1 to 99 are displayed. e. the numbers 2 to 100 are displayed.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
You know the right answer?
Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant. That person is very b...
Questions
question
Mathematics, 11.10.2019 20:30
Questions on the website: 13722362