Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ You are to write a program that grades students (Maybe I will use it on you). Your program must open and read in input.txt
C++
You are to write a program that grades students (Maybe I will use it on you). Your program must open and read in "input.txt" (an example of which is below). It will contain the students name and their test scores. You are to calculate the students final grade in the course. Take the average of their test scores and output their average to a file with the below format. For the output.txt ensure that the formatting is in the block style shown below. Test scores should always be shown to the second decimal place.
C++ is the language.
input.txt - Notepad File Edit Format View Help Meryl Streep 100 105 98.5 99.5 106 output (1).txt - Notepad File Edit Format View Help Meryl Streep Test scores: NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Average score: ..... .....101.80 Test score 1: .100.00 Test score 2: .. . 105.00 Test score 3: .... .....98.50 Test score 4: .99.50 Test score 5: ..... ...106.00Step 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