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. Names 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 located in the Chapter 5 programs folder on the book’s companion website.
Ref:
Student Line-Up
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 20 for the number of students in the class and then loops to read in that many names. 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 no two students have the same name.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.