Your spouses cousins nephews dogs trainers best friend owns


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 12, eat free. 

Teens and seniors get a 25% discount.  Teens are anyone from 13 to 18 years old.  Seniors are anyone 65 or older.

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 (mid 40s) mother and father named Bill and Nancy.  They have a 2-year old child named Jesse.  They are traveling with Nancy's 70 year old 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.

Your program should run until the user inputs that there are no more orders.  The program should print the total per person and then the grand total.  Use methods to display the menu, read the item ordered and read the person's age. 

To earn full credit for this assignment, you MUST create a table for your test cases.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Your spouses cousins nephews dogs trainers best friend owns
Reference No:- TGS01190619

Expected delivery within 24 Hours