Question: Using Java EGR 140: Computer Programming Assignment # 12 Assigned: Wednesday, 18 October 2017 Due: Monday, 23 October 2017 Points: 20 Write an error-free Java
EGR 140: Computer Programming Assignment # 12 Assigned: Wednesday, 18 October 2017 Due: Monday, 23 October 2017 Points: 20 Write an error-free Java program to do the following things. This program approximates the waiting list for a seat at a restaurant. There are several people who arrive simultaneously and want to eat "right away" The program should prompt the user to input a group of characters (a string). The chars will refer to people's names and will be entered as one word names for each group waiting. There will be exactly 5 names that need to be entered into the list. The longest name will be less than 30 characters long. Sort the names into alphabetical order. After all of the names have been entered, the program should prompt the user to input a name. After the name has been entered, the program should conduct a search of the list looking for the name. If the name is on the list, then the program prints a message with the name and specifies how many are ahead of it on the list. o names o If the name is not on the list, then the program should print a kind message that says that customer is out of luck and should check into eating fast food instead. o The program should continue to prompt for names on the list till the user inputs "done At the end, the program should print a friendly message (optional). The final search needs to be repeated till the user inputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
