Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 getScore0 should ask the user for a test score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five scores to entered. void calcAverage0 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 find Lowest) 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. int findMaximum0 should find and return the highest of the five scores passed to it. It should be called by main to find the maximum score. Input validation must be incorporated into your program such that test scores are not accepted until they are in the range: [0, 100] (inclusive). When run, the program must display to the user the following: 1) the lowest score (indLowestO may also be called by main); 2) the average score; and 3) the maximum score. Decide for yourself how to manage console output, but calcAverage0 must display the average score *You may assume that duplicate low scores are not entered

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

Define moderator variable.

Answered: 1 week ago

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

=+ c. a company president deciding whether to open a new factory

Answered: 1 week ago