Write a program to compute numeric grades for a course. The course records are i
ID: 3616793 • Letter: W
Question
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 ten quiz scores all on one line. The quiz scores are whole numbers and are separated by one space. Your program will take its input from this file and send its output to a second file. The data in the output file will be the same as the data in the input file except that there will be one addtional number(of type double) ate the end of each line. This number will be the average of the student's ten quiz scores. If this is being done as a class assignment, obtain the file names from your instructor. Use at least one function that has file streams as all or some of its arguments.Explanation / Answer
please rate - thanks #include #include using namespace std; void calculate(ifstream&, ofstream&); int main() { ifstream in; ofstream out; in.open("input.txt"); if(in.fail()) { coutfirst; while(in) {sum=0; in>>last; outRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.