Question: Code this in c++. I have attached what the .txt file looks like. contains numbers representing test scores, out of 40 possible. Save your input

contains numbers representing test scores, out of 40 possible. Save your input files as .txt files using Atom. 2. Discuss how to write code to read in all the scores from the file and store them into a vector. You should then compute the average AND the number of scores, and print them out to the terminal. Check your answer with one of the lab teachers before moving on 3. Write the code you discussed in 1. Copy-paste your code into your lab report. Run your code to be sure it's right, and check your answer with one of the lab teachers before moving on 4. Discuss how to change your code so that instead of printing the average to cout, it sends it to an ouput file. After the average, you should also output all scores that were above the average to the file. Check your answer with one of the lab teachers before moving on 5. Write the code you discussed in 3. Copy-paste your code into your lab report. Run your code to be sure it's right, and check your answer with one of the lab teachers before moving on
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
