Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write in java. Needs to accurately determine a bill for the family in the description. Children eat free and seniors and teens get a

Please write in java. Needs to accurately determine a bill for the family in the description. Children eat free and seniors and teens get a 25% discount. Food and beverage are taxes 5% no tax for senior or teens. Last person did not use complete code at all! Thank you! image text in transcribed
image text in transcribed
Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant. That person is very bad at math and 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, I. 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 Wings Burger Chicken sandwich 5.95 Fries Pie Ice cream Soft drink Coffee .15 each 4.95 1.99 2.95 2.99 1.50 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 fath 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 user friendly 1/0 20 20 20

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago