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

  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