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

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!