Question: C++ Write a program, which will as k the user how many name s (one word, no spaces) they wish to enter . The program
C++
Write a program,
which will as
k the user how many
name
s
(one word, no spaces)
they
wish to enter
.
The program
will then read that many name
s,
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 d
one without regard to the case of the lett
ers (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 name
s 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 name
s.
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
Get step-by-step solutions from verified subject matter experts
