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

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  Program to processes the test data

Write a program that processes the test data. The output should be the student's ID, followed by the answers, followed by the test score, and followed by the test grade.

  Create application to generate a series of random numbers

Create the application to generate a series of 100 random numbers in the range of 1 through 1000. Save the series of numbers in a file.

  Write temperature conversion program

You will write a temperature conversion program. GUI and event handling setup must be done in the constructor of the class that implements the GUI.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

  Program to track which user is logged onto which computer

Write a computer program that could be used to track, by lab, which user is logged onto which computer.

  Hubspot: inbound marketing and web 2.0

Hubspot: Inbound Marketing and Web 2.0

  Creating application to test class rectangle

Write down application to test class Rectangle.

  Travelling salesman problem

Travelling Salesman Problem on the L1-metric plane.

  Computer sales and repair store system

It is required to design a relational database system for a "realistic" application

  Calculating hit ratio for program having loops

Calculate hit ratio for program that loops 10 times from locations 0 - 64.

  Create a credit approval application for retail store

You have been asked to create a credit approval application for retail store. To get approved for credit card customer must meet the following criteria: Should be 18 years of age or older

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