Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 scoresDStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started