Write program to compute contestant-s score

Assignment Help Programming Languages
Reference no: EM1370743

A 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 remaining scores. Write a program that uses this method to calculate 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.
•void calcScore( ) should calculate and display 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.
The last two functions, described below, should be called by calcScore, which uses the returned information to determine which of the scores to drop.

•float findLowest( ) should find and return the lowest of the five scores passed to it.
•float findHighest( ) should find and return the highest of the five scores passed to it.
Input validation: Do not accept judge scores lower than 0 or higher than 10.

Reference no: EM1370743

Questions Cloud

Explain the speed of the test charge : Point A is located 0.259 m away from a charge of -2.11 x 10-9 C. Point B is located 0.487 m away from the charge. What is the electric potential difference VB - VA between these two points.
Find price associated with long-run equilibrium : If going rate for developing a roll of film is $8.50, is industry in long-run equilibrium. If not, find price associated with long-run equilibrium.
Output of the typical firm : The output of the typical firm is decreasing even while industry output is increasing. How is this possible from the above statement?
Explain to finance the purchase of a house from tuna : Explain To finance the purchase of a house from Tuna, Uri signs an instrument promising to pay to "Verity Mortgage Service
Write program to compute contestant-s score : Performer's final score is determined by dropping highest and lowest score received, then averaging remaining scores. Write a program which uses this method to compute a contestant's score.
What mass of water fell on the town : What minimum constant acceleration does this need if the aircraft is to be airborne after a takeoff run of 250 m.
Illustrate account in order to make a decision of policy : Illustrate what or considerations may be taken into account in order to make a decision on implementation of policy.
Calculating expected roe : Southwest Physicians, a medical group practice, is just being formed. It will need 2 million dollar of total  assets to generate $3 million in revenues.
Overcome barriers to entry into competitive industries : what were the barriers that you listed as entry barriers into those industries and what are some ways that companies that companies can overcome or alleviate these barriers?

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Write program to compute diameter in centimeters

Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.

  Explain inheritance structures of galaga

Write a 3-page paper about inheritance structures of Galaga. Recognize the parent and child classes and describe what each class has for events and data.

  Write program which inputs the string from user

Write a program which inputs the string from a user. Then it will take character as input and prints string onwards from that character.

  Write program for department of motor vehicles

Department of motor vehicles has finally decided to computerize its list of licensed drivers. Program you write must make use of existing file call Licenses with records of given form. Name, License Number

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Desigh program that enters first and second number

Desigh a program which enters first and a second number. First and second number which will be entered should be computed in halves, quarter, double, and square using JoptionPane input dialog.

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  User defined function to calculate average of three scores

A user defined function that will calculate and display the average of the 3 scores that remain after dropping the highest and lowest scores the performer received.

  Define class that contains member variable of type string

Define a class named Document that contains a member variable of type String named text that stores any textual content for the document.

  Design program to list total points scored for classroom

Student ID, classroom number, and score on the achievement test. Design a program that lists the total points scored for each of the 30 classrooms.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd