Determine the winner of the got talent contest

Assignment Help Basic Computer Science
Reference no: EM13871407

Write a C++ program to determine the winner of the Got Talent contest. The contest has five judges, each of whom awards a score between 1 and 10 for each of the performers. Fractional scores are not allowed. A contestant's final score is determined by dropping the highest and lowest scores received, then averaging the three remaining scores (the average should be rounded to two decimal places). The winner is the contestant with the highest average score. If there is a tie, the winner will be the first contestant judged.

Requirements:

  • Input the contestant's first name followed by the 5 judges' scores. You do not know how many contestants there are. Design the loop so the loop terminates when you are finished entering contestants.
  • Input validation: Do not accept a judge's score that is less than 1 or greater than 10. As each score is entered send the score to a function to test the score's validity.
  • Use function calcAvgScore that has the contestant's 5 scores as input parameters
    • returns the average score for that contestant.
    • Calls two functions, findLowest and findHighest which both accept the 5 scores as input parameters and return the lowest and highest scores, respectively.
  • Do not use global variables. All variables used in the functions must be passed as parameters or declared locally.
  • At the end of the program, display the winner and winning score (rounded to 2 decimal places).

Reference no: EM13871407

Questions Cloud

Can sandy sue joe for breach of promise to marry her : Three weeks before the wedding date, Joe calls off the wedding. He says he is no longer in love with Sandy and has met someone else. Can Sandy sue Joe for breach of promise to marry her? Can she sue the other woman for alienation of affections
Prepare a swot analysis of the company : Prepare a SWOT analysis of the company
Discuss whether the system is reasonably funded : Discuss the significance of the change in the investment earnings assumption in the calculation of the actuarial accrued liability Based solely on the information in this problem discuss whether the system is reasonably funded. What additional data..
Prepare a value chain analysis for qualcomm and identify : Prepare a value chain analysis for Qualcomm and identify
Determine the winner of the got talent contest : Write a C++ program to determine the winner of the Got Talent contest. The contest has five judges, each of whom awards a score between 1 and 10 for each of the performers. Fractional scores are not allowed. A contestant's final score is determined b..
Sinusoidal voltage and current : Consider the sinusoidal voltage and current v(t) = 120 sin(120πt) V and i(t) = 20sin(120πt + 60o) A.
Does mary have grounds to file for an annulment : Jim has never said that he does or does not want children. After two years of marriage, Mary wants to have a child, but Jim tells her that he does not want any children. Does Mary have grounds to file for an annulment? Why or why not
Assume that the town of boonsville maintains : Assume that the Town of Boonsville maintains an Agency Fund for its employees, insurance with-holdings, another for its employees, income tax withholdings, and a third for its employees, pension contributions.
Two integer items from a terminal operator : Flowchart an algorithm that will receive two integer items from a terminal operator, and display to the screen their sum,difference, product and quotient. Note that the quotient calculation (first integer divided by second integer) is only to be perf..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Displays the total amount for each service category

?? P7.17Write a program that reads a text file as described in Exercise P7.16, and that writes a separate file for each service category, containing the entries for that category. Name the output files Dinner.txt, Conference.txt, and so on.

  Declare a variable

Assume the existence of a Window class with methods getWidth and getHeight, and a subclass TitledWindow, with a constructor accepts a string corresponding to the title of the window.

  Technology in home-workplace has negative impact on women

What technology in the home and workplace has a negative impact on women, if any; and (b) do women roles still remain largely associated with the home and domestic chores.

  What steps can be taken during implementation of a s/w

What steps can be taken during implementation of a software system

  Review about influence of internet on our daily life

We live in a world where the internet plays a pinnacle role in our day to day lives. Discuss how the internet has caused an ethical debate on our information privacy.

  No funds are available to hire additional officers

No funds are available to hire additional officers

  Explain applications of pervasive computing

Which of the applications of pervasive computing do you believe are probable to gain greatest market acceptance over next few years? Why?

  What is pseudocode

What is pseudocode? Why is it a useful way to describe a solution?

  Define a method hello

Define a method hello(name) which takes in a string representing a name and prints out "Hello, " followed by the name.

  Write a segment of java code that will rotate the elements

Write a segment of Java code that will rotate the elements of an array by one position, moving the initial element to the end, like.

  How e-commerce is different from traditional retailing

Explain how e-commerce is different from traditional retailing? Write down some distinguishing features of digital markets and digital goods?

  Create a function that takes in x

Create a function that takes in x (the number of successes we are interested in), n the total sample size, p the proportion of successes, and Which Way which will take on characters " "," =". This function should perform the following steps:

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