Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a Lab Challenge. You must watch the video (located in the Lab Participation item in the current module in Canvas), and complete and

image text in transcribed
image text in transcribed
image text in transcribed
This is a Lab Challenge. You must watch the video (located in the Lab Participation item in the current module in Canvas), and complete and submit the code for this lab. the video includes questions that you must answer in order to receive full credit for this Lab. All the code you will need is provided and explained in the video: Problem Description and Given Info Pear's Pancake Pad is a growing restaurant business. They would like to upgrade their existing pen-and-paper system for tracking tickets to a digital point of sale system. They are asking you to build that point of sale program for them. The point of sale program must: 1. Allow the waitstaff to input the item ordered by each diner at a given table - Each table can seat up to 4 diners 2. For each diner at the table, the system must: 1. Display a menu of at least 7 common breakfast items 2 Allow the waitstaff to enter the items the diner has ordered - Each diner may order as many items as they want 3. After the orders for all diners at a table have been entered, the system must display: 1. total price for the whole table (pre-tax) 2. total tax for the whole table (tax is 8% of the total price) 3. suggested tip amounts for 10%,15%,20% and 25% tips for whole table (on the pre tax total) 4. the program should continue to ask if there are more tables, and repeat the steps described above for each table. 5. After all table's orders have been processed, the program should print out the register total (total price + tax for all tabjes) for the day. Part 11 A Program is essentially a package of responsibilities. For any program there are things the program will need to know or keep track of, and there are things the program will need to do. To meet these responsibilities, we use variables to store the things a program will need to know, and we define methods to do each of the things the program will need to do. The methods often call other methods (delegating A Program is essentially a package of responsibilities. For any program there are things the program will need to know or keep track of, and there are things the program will need to do. To meet these responsibilities, we use variables to store the things a program will need to know, and we define methods to do each of the things the program will need to do. The methods often call other methods (delegating some responsibilities) to help them do what they are responsible for doing For example, your getAl1Table0rders method (which is responsible for getting all table orders and returning the total amount of money collected from these tables) calls the moreTablesToServe, and getTable0rder methods (delegating these smaller responsibilities to simpler methods). In the previous 10 parts, you have already written all but the last little bit of this full program. Below, you have been provided with that last little bit. It is a method definition for a method named main, which simply calls the getALLTable0rders method and stores the returned amount in a variable before it finally displays the total register amount for the day. When you fun your program the Java Runtime will. automatically call your main method. All you will need to do is to copy and paste the ten methods you already wrote into the java file below (where indicated), and then you can hit the Run my program button and test your full program. Need Help? Additional help resources are available by clicking on the words "Need Help? at the bottom of this page, and search for help or ask a questionl Enter number of diners at this table: 2 Another item ('yes' or 'no')? yes Enter a menu choice : 2 Another item ('yes' or 'no')? yes Enter a menu choice : 4 Another item ('yes' or 'no')? no Another item ('yes' or 'no')? yes Enter a menu choice : 7 Another item ('yes' or 'no')? no Table total : 7.25 Tax amount : 0.58

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

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions