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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:10, sammigrace5820
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 1
image
Computers and Technology, 23.06.2019 16:10, alexis9658
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, bevanscory123
What are loans to a company or government for a set amount of time
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, NEUROPHARMACOLOGICAL
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
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 in other subjects:

Konu
Physics, 05.08.2021 07:10
Konu
Mathematics, 05.08.2021 07:10