Question: C++ program. plz write in formal indentation and format, while follow the instruction on the program written by the teacher. Thank you very much. Project



C++ program. plz write in formal indentation and format, while follow the instruction on the program written by the teacher. Thank you very much.



Project Performers A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and the lowest score received then averaging the three remaining scores. Write a program that calculates the score of each performer and determines the winner. Assume there's only one winner! Input: Read data from an input file named performers.txt. First create the input file: copy and paste the following data into a new text file: performers.txt John 7.0 7.8 7.1 7.9 7.5 Dan Mary 8.3 8.0 8.97.9 8.5 Andrew 9.1 8.9 9.0 8.7 9.1 Sue Linda 8.2 8.4 8.9 9.3 8.5 David 9.0 5.6 8.9 9.9 7.3 Ann 8.3 2.9 9.89.2 9.7 9.0 8.8 9.1 9.7 9.3 7.9 8.2 7.6 8.1 8.0 You may assume that a performer is identified by its unique first name (no two performers have the same first name) Output: Write the number of participants, the name of the winner and the winner's score to the screen. Write to a file named results.txt the names of the performers and their final score /NOTE: You must write documentation for each function - see next page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
