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

  Write application layer protocols to permit through firewall

As part of your own planning process, write the application layer protocols which you would permit through the firewall, those you would block and your reasons for doing so.

  Explaining object hierarchy in object-oriented programming

Study the concept of inheritance and the object hierarchy in object-oriented programming, and write a paper comparing these concepts with the concept of inheritence.

  Program to accept each worker-s first and last names

A program which continuouly accepts each worker's first and last names, this year's number of units produced, and last year's number of units produced. Show each employee with a message.

  Write program which accepts input values-store tem in array

Write a program which accepts five input values and stores them into array. Program must display those five numbers in reverse order.

  Create program to compute monthly interest

Create program to compute the monthly interest and print new balances for each of the savers. Then set annualInterestRate to 5% and compute the next month's interest

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Design program to compute-display number of miles per hour

Design a program that calculates and displays the number of miles per hour over the speed limit that a speeding driver was doing.

  Explain usability and accessibility in site design

A description of content to be included in site and how this content will be acquired. Attention should be given to copyright restrictions.

  Write pseudo algorithm which inputs age for valid voting

Write pseudo algorithm which inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18, and displays nothing else.

  Make confirmation page using xhtml portion of script

Use XHTML portion of the script to make confirmation page to be viewed by visitor. Confirmation page must display the text of email message.

  Create a print stream object using dos

Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

  Write program to display company payroll report in list box

Write a program that display a company payroll report in a list box. the program should read each employees name, hourly rate and hours worked from a file and produce a report.

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