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

  An iterative algorithm to traverse an arbitrary number

An iterative algorithm to traverse an arbitrary number of nested subdirectories in a file system.

  When accessing the remote linux machine

When accessing the remote Linux machine

  Convert fahrenheit to celsius

a program that will convert Fahrenheit to Celsius. The user will enter the degrees in Fahrenheit and the program will give the results in Celsius. This is to be done in Pseudo Code Only. good programming techniques. Must also use modular programmi..

  Write a program that reads a java source

write a program that reads a java source file and produce index of all identifiers in the file. use the call in.useDelimeter("[^A-Za-zO-9-J]")

  Write a program in matlab and vb to ask

Write a program in Matlab and VB to ask the user the maximum error emax (e.g., 0.1, 0.01, 0.05, etc.), keep adding terms in S, until the following condition is satisfied: emax > |S - Sk| Print the minimum number of k to satisfy the above condition..

  Analysis of how current and future technology trends

Analyze previous submissions and make changes as necessary to the final paper. Continue development of the project or research with a 3-5 page detailed analysis of how current and future technology trends might impact the project or research performe..

  Write a function to evaluate a polynomial

Write a function to evaluate a polynomial at a given real value a. That is define a function eval(P,a) that takes a list (polynomial) P and a given real number a, and computes P(a).

  Design a scheme to prevent messages from being modified

Random J. Protocol-Designer has been told to design a scheme to prevent messages from being modified by an intruder.

  Microsoft project tool easy

Did you find the Microsoft Project tool easy to use? What is your best feature of the tool

  Write the implementataion of my animal class

Below is the header for my animal class. I need to create a derived class based on my animal class.

  How to use dynamic programming to optimally make change

Consider a coin system for which we know the greedy algorithm would fail to always provide optimal change: d = [1,5,8] . Show how to use dynamic programming to optimally make change for 10 units.

  Computing a mathematical discipline a scientific discipline

Name the four areas in which a practitioner in computer science must be skilled.2) Is computing a mathematical discipline, a scientific discipline, or an engineering discipline? Explain in 50 words or less.

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