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 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
Get step-by-step solutions from verified subject matter experts
