Question: Write a program that would read a list of N names from the user and allow him/her to print them out, sorted in ascending

Write a program that would read a list of N names from the user and allow him/her to print them out, sorted

Write a program that would read a list of N names from the user and allow him/her to print them out, sorted in ascending or descending order. The following options should be given to the user: 1. 2. 3. 4. 5. 6. Enter the number of names Enter Names Print names as entered by the user Print names in ascending order Print names in descending order Quit Notice that you have to validate the user's input and print appropriate error messages where applicable. Activate Windows

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!