Question: Write a C++ program to calculate the average score for a students project in a Science Fair competition. The overall score earned by the students

Write a C++ program to calculate the average score for a students project in a Science Fair competition. The overall score earned by the students project is calculated by the average of all the judges that scored the project. a) Prompt and get from the user the name of the student whose project is being judged. b) Prompt for the number of judges that scored the project. If the number of judges is less than 1, then display an ERROR message. c) Using a while loop, prompt the user for the scores received from each judge. Accumulate the total score earned from the judges as the user enters them. d) Calculate the average score for the project. e) Display the name of the student, the total score earned, and the average score received from the judges to a tenth of a decimal.

Sample I/O: Please enter the student's name: ? Lisa Hall How many judges scored Mary Hills project? 4 Enter the score received from each judge. Judge 1: 12.5 Judge 2: 16.5 Judge 3: 14.0 Judge 4: 15.5 Mary Hills Science Fair Project Scores: Total Score58.5 Average Score..14.6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!