Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*****PLEASE DO THIS PROBLEM IN C++*****DO NOT USE CONIO****** Write a program that calculates the average of a group of test scores, where the lowest

image text in transcribed

*****PLEASE DO THIS PROBLEM IN C++*****DO NOT USE "CONIO"******

Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: - Void getScore) should ask the user for a test score, store it in a reference parameter variable, and validate it. T his function should be called by main once for each of the five scores to be entered. Void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores. - -Int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop. The main function should define five variables, call getScore for each variable, call calcAverage passing all five variables, and exit calcAverage should call findLowest findLowest should return the value of the score to be dropped . o You can then use this information to adjust the total score before averaging .Do not accept scores lower than 0 or higher than 100 o Loop until the user complies Display the average to 3 significant digits Sample Outputs: Enter a test score: 81 Enter a test score: 95 Enter a test score: 73 Enter a test score: 88 Enter a test score: 94 After dropping the lowest score, the test average is 89 Press any key to continue . Enter a test score:-151 Enter a test score between 0 and 100: 51 Enter a test score: 151 Enter a test score between 0 and 100: 54 Enter a test score: 65 Enter a test score: 35 Enter a test score: 75 After dropping the lowest score, the test average is 61 Press any key to continue

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

Analyse the process of new product of development.

Answered: 1 week ago

Question

Define Trade Mark.

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago