Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions