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

  Reverse the string

Reverse the string. If the reversed string is the same (.equals()) as the original, pared down, string then it is a palindrome.Way 2: Look at the first and last letter and see if they are the same (using the charAt() method), then the second letter ..

  Distinct integers that has the following property

You have an array A[0], A[1], ..., A[n - 1] of distinct integers that has the following property:The values in the array increase up to index p for some p between 0 and n - 1, and then decrease for all indices beyond p through positio

  Sql dml for data modification in tables

Write SQL DML statements that will modify data from within a database. Using the Northwind database, write a SQL DML statement that will modify the data. Base it on the following requirements:

  Write program take input and test scores

I need a program that allows me to... 1. Input students test scores(Tests, Quizzes, Classwork, and Homework) stored in dynamically declared arrays and PPS weights given to each score

  Demonstrate effective communication

Demonstrate effective communication by composing writing that communicates ideas, meaning and/or argument in a format that broadly follows conventions in the information systems field.

  Hierarchy chart and then plan the logic

Draw the hierarchy chart and then plan the logic for a program needed by the sales manager of The Henry Used Car Dealership. The program will determine the profit on any car sold

  Organization uses to protect information

Organization uses to protect information

  Data representation-numbers

Think about the examples we discussed in class - how numbers can be represented in 4 bits or 8 bits, etc. Expand this thinking to 16 bits. If you were given 16 bits to work with, as the basis for your representation scheme:

  Write pseudocode for the following statements

Write pseudocode for the following statements: The variable N starts with the value 1000. The variable T starts with the value 200. The variable B starts with the value 4.

  What is digital media and provide a real-world example

What is Digital Media? Provide a real-world example

  Achieving greater maturity that addresses funding priorities

Explains a set of recommendations for achieving greater maturity that addresses funding priorities. Explain a set of recommendations for achieving greater maturity that addresses key management capabilities.

  Develop a first-cut sequence diagram

Develop a first-cut sequence diagram, which only includes the actor and problem domain classes. Add the view layer classes and the data access classes to your diagram from part a. Develop a design class diagram based on the domain class diagram and..

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