User defined function to calculate average of three scores

Assignment Help Programming Languages
Reference no: EM1353135

A prestigious talent competition is composed of 5 judges, each of whom awards a score is from 0 to 10 to each performer. A performers final score is determined by dropping the highest and lowest score received, then averaging the 3 remaining scores. Write a program that uses this method to calculate a contestants scores. It should include the following functions: A user-defined function that will ask the user for a judges score from 0 to 10 (fractional scores, such as 8.3, are allowed), store it in a reference parameter variable, and validate it. This function should be called by main once for each of the judges. A user-defined function that will find and return the lowest of the 5 scores passed on it. A user-defined function that will find and return the highest of the 5 scores passed on it. 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. This function should be called just once by main, and should be passed the 5 scores.

Reference no: EM1353135

Questions Cloud

Illustrate what conclusions can you draw about similarity : Illustrate what conclusions can you draw about the similarities and differences between the EU and globalization.
Discuss welfare effects of monopolies and oligopolies : Describe the difference between a monopoly and an oligopoly, and a cartel - Provide an example of a monopoly, an oligopoly, and a cartel.
What force do you exert on the rope : A horizontal force of 822 N is needed to drag a crate across a horizontal floor with the constant speed. You drag the crate using a rope held at an angle of 34° (from the horizontal).
Explain the market requires an interest rate : Explain the market requires an interest rate of 5.2% on these bonds and What is the bond's price
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.
Objectives questions on key data : Determine which of the following are temporary differences that are normally classified as expenses or losses that are deductible after they are recognized in financial income?
Explain why housing prices vary from city : Describe why housing prices vary from city to city and describe how supply and demand affect the prices of the homes and be sure to show your work.
Estimate the necessary length of wire : Two identical point charges are fixed distance from one another. If one of their charges was doubled an the other was halved, how would the electric force be affected.
Analysis on humanistic theory and existential theory : I am writing an analysis on humanistic theory and existential theory. Maslow established humanistic theory and May develop existential theory.

Reviews

Write a Review

Programming Languages Questions & Answers

  Method takes string and integer as parameters

Write a method called multiConcat which takes a String and an integer as parameters. Return String made up of the string parameter concatenated with itself count times.

  Appropriate for two classes to inherit from superclass

CDs and DVDs have several common characteristics. Would it be appropriate for these two classes to inherit from a common superclass?

  Writing class containing two instance variables

Write class named ParkingMeter containing: two instance variables named timeLeft and maxTime of type int. Value of timeLeft must be initialized to 0.

  Function to responds- to click anywhere on page-display box

Write a function that responds to a click anywhere on the page by displaying an alert dialog. display the event name if the user held shift during the mouse click.

  Explaining class definition of subclass of square

Write down the class definition of subclass of Square called FancySquare which has a method called getDiagonal. The getDiagonal method gets no arguments.

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  Program to print total balances forward and total withdrawal

At the end of report, print total balances forward, total deposits, total interest earned, total withdrawals and total final account balances.

  Pseudocode that will generate reports from data files

Develop a mock-up of each of these reports, and get customer approval of these mock-ups. Write pseudo code that will generate these reports from the data files, using a CASE tool;

  Create a simple shell

Create a simple shell. Basically your shell should read the line from standard input, parse the line with command and arguments, and operate the command with arguments.

  Implement functions using x86 assembly

Implement a procedure that mimics a logic unit

  Determine total cost of order-display it in alert dialog box

After you determine the total cost of the order (purchase plus shipping and handling), display it in an alert dialog box.

  Program to find real solutions

Method, which determines whether value of "b squared" - 4ac is negative. If negative, code then  prints out message "no real solutions" and returns from method.

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