Question: using c++ file io Recitation 6 exercise: Write a program that reads the scores of a student from a file into an array and writes
using c++ file io

Recitation 6 exercise: Write a program that reads the scores of a student from a file into an array and writes the average score and the corresponding grade in the output file. You can download the input file "Scores txt" from moodle under recitation 8. You can name you output file as Grade txt" The input file contains scores of a student in 7 subjects with each score written on a newline. Your program must contain separate functions for reading and writing a file. You should declare the array of scores in your main function and pass it to these functions. Pass the input file name and the empty scores array to the readScores() This function should read the scores from the input file and store the scores into your array. void readScores(string inputFile, float scoresD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
