Question: C++ Programming Student List A teacher wants to list all her students full names, considering only for the two students at the front and the
C++ Programming
Student List
A teacher wants to list all her students full names, considering only for the two students at the front and the end of the list that must be in alphabetical order. That meant the student at the top and at the end of the list will be set alphabetically according to their full name.
Write a C++ program that can help her with the issue. The list of names could be either read in from an external text file or entered from the keyboard, one full name at a time.
Once all the names have been read in, the program reports which name should be at the top of the list, and which name should be at the end of the list, in alphabetical order of their names. Also, the list of names must be displayed on the screen, together with the original order that their names were entered, for the teacher to check back of her record.
Assume that no two students have the same name. Using array is not allowed, absolutely, and will have no credit.
Lastly, allow your program to run continuously as often as the user wishes. Before ending the program, your name as the programmer must be displayed.
Input validation: the number of students must be in the range of 5 to 30, inclusively.
Hint: If the names were entered from the keyboard, all the read-in names must be recorded in the order that they were entered into an external text file.
Sample the professor made. It must be similar to it.
Among the names read in, either from a file or from the keyboard,
the program reports which name should be at the top and which name should be at the end of the list,
in alphabetical order of the names.
The list of names and their read-in-order are displayed as well.
== * == * == * == * == * == * == * == * == * == * == * == * ==
How would you like to read in the students' names?
(1) Entering names from keyboard
(2) Reading names from external file
(3) End program
== * == * == * == * == * == * == * == * == * == * == * == * ==
Enter your choice: 2
Enter the name of the file: CISC 192.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
