Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. Star Search Figure 1: p-401, Programming Chal- lenge #9 A particular talent competition has five judges, each of whom awards a score between 0

image text in transcribedimage text in transcribed
9. Star Search Figure 1: p-401, Programming Chal- lenge #9 A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and lowest score received, then averaging the three remaining scores. Write a program that uses these rules to calculate and display a contestant's score. It should include the following functions: . void getJudgeData ( ) should ask the user for a judge's score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five judges. . double calcScore () should calculate and return the average of the three scores that remain after dropping the highest and lowest scores the performer received. This function should be called just once by main and should be passed the five scores. Two additional functions, described below, should be called by calcScore, which uses the returned information to determine which of the scores to drop. . int findLowest () should find and return the lowest of the five scores passed to it. . int findHighest () should find and return the highest of the five scores passed to it. . You goal is to get the same output I have, given the same inputs. You do not have to have the same titles, etc, I have however. I'm interested in you transforming the same data and arriving at the same output. . Do not get creative and add features - save that for your home- work. These are supposed to be short and quick assignments. . Use a source file header just like your homework assignments. The purpose of these assignments is to reinforce concepts from the material we are currently studying. That's why they are only worth 50% when they are late - they don't apply to the material we are studying anymore. Output. Due Date and Turn In. I ONLY accept homework through the Canvas Dropbox. Do not add it to the submission comments or email it to me - I will not ac- cept it. Turn homework in by uploading to the appropriate Canvas Dropbox folder. Save your homework as a .cpp file. Don't zip or oth- erwise compress your files. Do NOT split your file up into multiple files. I know that is a standard industry practice, but it just get's in the way for this class. CISP 360 Star Search Figure 2: Aim to produce something similar to this.- You goal is to get the same output I have. given the same inputs. You do not have to have the same titles, etc, I have however. I'm interested in you transforming the same data and arriving at the same output. I Do not get creative and add features - save that for your home- work. These are supposed to be short and quick assignments. ' Use a source le header just like your homework assignments. I The purpose of these assignments is to reinforce concepts from the material we are currently studying. That's why they are only worth 50% when they are late - they don't apply to the material we are studying anymore. Output. Due Date and Turn In. I ONLY accept homework through the Canvas Dropbox. Do not add it to the submission comments or email it to me - I will not ac- cept it. Turn homework in by uploading to the appropriate Canvas Dropbox folder. Save your homework as a .cpp le. Don't zip or oth erwise compress your files. Do NOT split your le up into multiple les. I know that is a standard industry practice, but it just get's in the way for this class. CISP360 Star Search score: 0 a number between 1 and 10 a number between 1 and 18 judge 2 score: 1 judge 3 score: 2 judge 4 score: 2 judge 5 score: 16 Average score is 2 Z 0 Z Z Figure 2: Aim to produre something similar to this

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions