Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Everything works as it should except for the program displays not on list even for names that are on the list. Any help appreciated! EGR
Everything works as it should except for the program displays "not on list" even for names that are on the list. Any help appreciated!
EGR 140: Computer Programming Assigned: Monday, 15 October 2018 Due: Friday, 19 Octoher 2018 Points: 20 Wrile a error-free Java program o do the following things. This program approximates the waiting list for a seat at a restaurant. There are several people who arrive simlneously anl wanl lo eal "righl away The program should prompt the user to input a group ot characters (a string). The chars will refer to people's names and will be entered as one word names for cach group wailing. There will be exactly 6 names thal 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 lhe names have been enlered, the program should prompe er to input a name, After the name has been entered, the program should conduct a search of the list looking for the name o If the name is on the lisl, lhen the program prints a message with the name and species how many names are ahead of it on the list. If the name is not on the list, then the program should print a kind message ha savs hal customer is oul of luck oStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started