OKAY SO I AM TRYING TO LEARN C++ AND I HAVE COMPLETED FOUR OF THREE OF THE FOUR ASSIGNMENTS FOR THE UNIT. nOW I AM STUCK ON THE LAST ONE AND I NEED HELP FIGURING IT OUT:
HERE IS THE INSTRUCTIONS AND WHAT I HAVE DONE SO FAR. wHAT I HAVE DONE IS WRONG AND I KNOW IT. ONE MORE PROBLEM IS IT KEEP SAYING ILLEGAL IDENTIFIER EVEN THOUGH I ADDED THEM! PLEASE HELP - THANK YOU
Write a program that reads student information from a file (one student per line) in the format:
StudentFirstName StudentLastName StudentID StudentTest1 StudentTest2 StudentTest3
and outputs them in the following format:
StudentLastName, StudentFirstNameInitial StudentID StudentTest1 StudentTest2 StudentTest3
where StudentFirstNameInitial is the initial (first letter) of the first name of student. Let us assume that the name
(StudentLastName, StudentFirstNameInitial) can be at most 15 characters, the StudentID can be at most 7
characters, and the StudentTest scores need up to 7 characters. The StudentTest scores should be formatted to have
exactly 2 decimals and should be aligned to the right. The rest of the values should be aligned to the left. Make sure you
are not missing any of the digits of the student ID. File.txt is an example of input file that you can use to test your
program.