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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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