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

  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.

  Design electronic submission of assignments from students

This system must manage electronic submission of assignments from students to instructors. It must keep track of which students have submitted assignments and must allow instructors to manage the grading.

  Design of implementation codes-object oriented programming

Supporting document is required to reflect design of implementation codes and implementation details which utilises object oriented programming concepts.

  Initialize elements of array with even integers

declare an array called values of type unsigned int with 5 elements. Initialize the elements of the array with the even integers from 2 to 10.

  Write a code to find the mean-median and mode

Use computer program to write a code (choose any language)to find the mean, median, mode ,variance and standard deviation.

  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.

  Create class has constructor to reduce function of fraction

Create a class RationalNumber (fractions) with the following functionality: Has a constructor that prevents a 0 denominator in a fraction and calls the reduce function to simplify the fraction

  Draw a gui to create objects

Draw a GUI that will create the objects and provide access to each object's processing methods. Use the drawing tool in Microsoft Word.

  Pseudocode for linear search by using clrs3e style

Write pseudocode for linear search by using CLRS3e style used in, which scans through the sequence, looking for v.

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Create a project in xcode

Create a new project in XCode using the Mac OS X/Command Line Tool template

  Historical principle for loss to the company is minimal

A colleague of yours frequently takes small amounts of office supplies, noting that the loss to the company is minimal. Your rationale expresses which historical principle?

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