Question: C++ programming Problem #28 - Using Files - Student Line Up Modify the Student Line Up program described in Programming Challenge 15 so that it

C++ programming Problem #28 - Using Files - Student Line Up Modify the Student Line Up program described in Programming Challenge 15 so that it gets the names from a data file. Name should be read in until there is no more data to read. Data to test your program can be found in the LineUp.txt file (Download it from this assignment page). Problem 15 A teacher has asked all her students to line up single file according to their first name. For example, in one class Amy will be at the front of the line and Yolanda will be at the end. Write a program that prompts the user to enter a number between 1 and 25 for the number of students in the class, then loops to read in that many names from the file. Once all the names have been read in, it reports which student would be at the front of the line and which one would be at the end of the line. You may assume that not two students have the same name. (It is not asking you to sort ALL the names, it only wants to know who should be first and who should be last, do not try to sort the names, that is for another chapter)

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!