Question: Module is about Loops (Repetition) Required Skills Inventory Write a method that takes no arguments and returns a value Use System.out.print to prompt the user

Module is about Loops (Repetition)

Required Skills Inventory Write a method that takes no arguments and returnsa value Use System.out.print to prompt the user for input Use a

Required Skills Inventory Write a method that takes no arguments and returns a value Use System.out.print to prompt the user for input Use a Scanner to collect user input Use String methods to compare String values Do not use any language features that have not been covered to this point in the course materials. Problem Description and Given Info Pearl'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 o 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 the whole tab (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 tables) for the day. Part 4 Design and write a public static method named dinerWantsAnother Item. This method should take no arguments, and should return a boolean value. When called, this method will ask the user if the diner wants another item from the menu, collect the user's input as a String (either "yes" or "no"), and return a boolean. Be sure to use the next method of the Scanner, and not the nextLine method. Calling dinerWantsAnother Item() might result in an interaction with the user that looks like this: Another item ('yes' or 'no')? yes In the example above, the method would return the boolean value true. If the user's input was the String value "no", then the method would return the boolean value false. Notes: You may wish to write some additional code, in the main method, to test your method. Do not declare or instantiate a Scanner in any of your methods. Use the public static Scanner named scnr that has been provided for you in the code given for this challenge.

Step by Step Solution

3.34 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets start by breaking down the problem First we need to create a method called dinerWantsAnother... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!