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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.

  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.

Grading criteria                                 %

variables named descriptively

20

user friendly I/O

20

decisions for pricing

20

decisions for tax

20

correct total

20

TOTAL

100

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education