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
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