C PROGRAMMING! NO COUTS JUST PRINTF 3. Write a program to compute numeric grades
ID: 3634949 • Letter: C
Question
C PROGRAMMING! NO COUTS JUST PRINTF3. Write a program to compute numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student’s last name, then one space, then the student’s first name, then one space, then five quiz scores:
ex of scores in the roster.txt file:
anna james 100 99 98 97 96
sarah wales 45 97 32 87 25
jane doe 31 23 54 25 89
etc
Your program will take its input from this file and send it’s output to the screen. The output will be the name of the student and his/her average all on one line on the screen. Use the file “roster.txt”.
Explanation / Answer
#include #include #include using namespace std; void copy(ifstream& in_stream, ofstream& out_stream); int main( ) { ifstream fin; ofstream fout; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.