Write a c++ program that reads a list of enrollments from a file and prints a class roster for the teacher. Make the class roster lineup as neatly as you can and still fit on the screen.You can choose the actual values to use for your data. Make sure to do enough sets of data to well test your program!(Empty data set, normal data set, data with large values, data with short values, etc.)Also, your program can't know ahead of time how many people are enrolled in the class...Don't forget to read the file's name from the user and protect your program against any errors that may occur during theopening of the file.Try to use functions to break up the program into more manageable pieces.As an example, you might have the data file contain:# name# student number# address1# address2# phone number# majorJason James100400299400 Maple DrWestfalia, HI 66554555/555-1122Computer ScienceFaruk Ahmed1112223331200 West Jones AveSlimsville, PQ 22221332-4546Medeaval French PoetrySean Ramirez20002002010000 Snapple LaneFritter, HO 443311-444/411-4414Underwater Basket WeavingHappy Gilmore313141455Simonton, SZ 11246Yellow Tail Migratory Patterns
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here