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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started