Question: This code has to be writing in c++ (grades.cpp) + Go to your cs211 directory and name your program grades.cpp Read data from an input
This code has to be writing in c++

(grades.cpp) + Go to your cs211 directory and name your program grades.cpp Read data from an input file called "stuscores.dat" that contains the following info. For each student, there are ID, first name, last name and 3 test scores. You can copy this input file from my public directory if you want 100 Mike Smith 200 Kathy Ross 300 David Flores 10 30 89 30 20 49 50 80 35 Your program should output the following to an output file called "grades.out. Line up the data as follows. Show 2 decimal places. It has to have the labels too. ID 100 200 300 Lowest 10 30 Highest 50 80 89 Average 30.00 43.33 57.67 49 Requirements: Don't use arrays or struct. Inside main Open up the input file. If the input file doesn't exist, show an error message. Use while not for. Assume you don't know how many students you have. Create a function called calcLow High Avg Calculate the lowest, highest and average in this function. Don't print them in this function. Instead, pass them back to main and print them there. After you compile your program with g++, you run a.out. You are not going to see anything on the screen because the data went to the output file. To open the output file, use cat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
