subject
Engineering, 28.11.2019 04:31 jjmo

Aparticular talent competition has 5 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 3 remaining scores. write a program that uses these rules to calculate and display a contestant’s score. it should include the following functions: • getjudgedata() should ask the user for a judge’s score, store it in a parameter variable, and validate it. this function should be called by main program once for each of the 5 judges. • calcscore(score1, score2, score3, score4, score5) should calculate and return the average of the 3 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 5 scores. two additional functions, described below, should be called by calcscore, which uses the returned information to determine which of the scores to drop. • findlowest(score1, score2, score3, score4, score5) should find and return the lowest of the 5 scores passed to it. note: you are not allowed to use min() function • findhighest(score1, score2, score3, score4, score5) should find and return the highest of the 5 scores passed to it. note: you are not allowed to use max() function

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:10
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
question
Engineering, 04.07.2019 18:10
The flow rate of air through a through a pipe is 0.02 m5/s. a pitot static tube is placed in the flow. the radius of the pitot static tube is 1 mm. assuming the flow to be steady and the air to be at 300k, calculate the difference in total and static pressure if the diameter of the pipe is: (a) d 0.1 m d 0.05 m (c) d 0.01 m
Answers: 2
You know the right answer?
Aparticular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each pe...
Questions
question
Mathematics, 26.01.2020 17:31
question
Biology, 26.01.2020 17:31
question
Mathematics, 26.01.2020 17:31
question
Mathematics, 26.01.2020 17:31
question
Advanced Placement (AP), 26.01.2020 17:31