Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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 o

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 And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago

Question

How would you assess the value of an approach like this?

Answered: 1 week ago