Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ A talent competition has five judges, each of whom awards a score between 0 and 10. Fractional scores, such as 9.3, are allowed. A

C++

A talent competition has five judges, each of whom awards a score between 0 and 10. Fractional scores, such as 9.3, are allowed. A performer's final score is determined by dropping the lowest and highest scores then averaging the three remaining scores. Write a program that uses this method to calculate a contestant's score. It should include the following functions:

double getJudgeData() should ask the user for a single judge's score, validate the score using a while loop for input validation, and return the score to main. This function should be called by main once for each judge.

void calcScore(...) should calculate and display the average of the three scores that remain after dropping the highest and lowest. This function should be called by main and should be passed the five scores.

Do not use arrays.

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_2

Step: 3

blur-text-image_3

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions