Writing a program which will ask the user how many names


ASSIGNMENT: Writing 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.

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

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

3. Use a two dimensional array to store the names.

4. Create a function to read in all the names.

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

Solution Preview :

Prepared by a verified Expert
Business Management: Writing a program which will ask the user how many names
Reference No:- TGS02366474

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)