Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please read all instructions as it has to be done in a certain way. here is orogramming challenge 14 it refrences. the names in the

please read all instructions as it has to be done in a certain way. image text in transcribed
image text in transcribed
image text in transcribed
here is orogramming challenge 14 it refrences. the names in the black background picture are the ones needed for the program. image text in transcribed
25. Using Files--Student Line Up Modify the Student Line Up program described in Programming Challenge 14 so it gers the names from a file. Names should be read in until there is no more data to read. If you have downloaded this book's source code you will find a file named LineUp.txt in the Chapter 05 folder. You can use this file to test the program. packie Sam Tom Bill Mary Paul Zey Barb Question to be worked on is : Programming Challenge 25: Using Files - Student Lineup(Page 302) For Programming Challenge 25, The program should prompt the user for the filename, Make sure the user enters a file name. If no file name is entered, then an error message should be displayed and the user should be asked again to enter the file name. If the file does not exist, make sure the user is given a message indicating that that the file does not exist. No processing should be done if the file does not exist . You will need to send me the cpp file only. While saving your C++ application, name the application file and cpp file using the format _Chapter5 25 . I have attached the data file "LineUp.txt" to the assignment Instructions 14. Student Line Up A teacher has asked all her students to line up according to their first name. For exam- ple, 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 the number of students in the class, then loops to read that many names. Once all the names have been read, 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. Input Validation: Do not accept a number less than 1 or greater than 25 for the number of students

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions