Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Beginning Programmin C++ Question 12 Noes swered Marked oot 30.00 Rag question Write a complete program in which the main function contains a loop that

Beginning Programmin C++

image text in transcribed

Question 12 Noes swered Marked oot 30.00 Rag question Write a complete program in which the main function contains a loop that prompts the user to enter a name and four test scores. The program will then display the name and the average of the the highest three of those four test scores, computed by calling the testAverage function you wrote in the previous problem. Do not write that function again. The program will continue to process names and test scores until the user hits the cENTER> key for the name. The program will then state the number of students that were processed and the average score for the entire class. Scores should be shown with two digits following the decimal point. Sample run, with user input in bold type: Welcome to Test Average! Please enter student name: Jack Sparxow Please enter four scores: 100 90 80 70 The average score for Jack Sparrow is 90.00 Please enter student name: Hector Barbossa Please enter four scres: 100 90 80 94 The average score for Hector Barbossa is 94.67 Please enter student name:ENTER KEY PRESSED > I computed grades for 2 students The class average is 92.33

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Understand why succession management is important.

Answered: 1 week ago

Question

b. Will there be one assigned leader?

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago