Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Beginning programming c++ Question 12 Not answered Hrked out of 30.00 r Png question Write a complete program in which the main function contains a

Beginning programming c++ image text in transcribed
Question 12 Not answered Hrked out of 30.00 r Png 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 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 Sparrow 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 scores: 100 90 80 94 The average score for Hector Barbossa is 94.67 Please enter student name: I computed grades for 2 students The class average is 92.33 . ENTER KEY PRESSED

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

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions