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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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