Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA use dual arrays 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

JAVA use dual arrays 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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe how a training needs assessment should be done.

Answered: 1 week ago

Question

Did you provide headings that offer structure to the information?

Answered: 1 week ago

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago

Question

Is this investment worthwhile? Why or why not?

Answered: 1 week ago