Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Exercise #2: Write a program to do: a) Prompts the user to input three test grades. Each grade is an integer number. b) Prints

image text in transcribed
c++
Exercise #2: Write a program to do: a) Prompts the user to input three test grades. Each grade is an integer number. b) Prints the three grades one per line in reverse order of input and labeled as Testi, Test2, and Test3. c) Finds the sum of the three tests and their average. d) Prints the sum and average of the three tests. Sample input/output: (The average is supposed to be actually 74.33, so why did we get 74? How to fix it to get an accurate average result?) Enter three grades: 69 7 3 The grades that you entered are: Test3: 81 Test2: 73 Test1: 69 The sum of the grades is: 223 The average grade is: 74 Homework #2: Redo the above Exercise 2 to read the test info (a) from a file "test.txt". Then output the results (b) to a file "grade.txt

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

3. Identify challenges to good listening and their remedies

Answered: 1 week ago

Question

4. Identify ethical factors in the listening process

Answered: 1 week ago