Question: In C++ Write a program, which will ask the user how many names (one word, no spaces) they wish to enter. The program will then

In C++

Write a program, which will ask the user how many names (one word, no spaces) they wish to enter. The program will then read that many names, store them in a two dimensional array of characters (one row per name), print them in the order they were entered, then sort them in increasing alphabetical order, and print them in sorted order. The sort will be done without regard to the case of the letters (i.e. case insensitive sort). The printing of each name MUST be done with the characters as they were typed, you cannot change the case.

The maximum number of names to be handled will be 20.

The maximum number of printable characters in a name is 15.

Use a two dimensional array to store the names.

Create a function to read in all the names.

Create a function to do the sort (modify the bubble sort discussed in class and in the text book).

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 Databases Questions!