These are the instructions for your first programming project. Recall that all code must be written individually and independently. This program is a review assignment - you can do this assignment using just programming techniques from last quarter.
This program is for calculating scores in a gymnastics competition. Each judge awards points from 1 to 10 for each competitor. There are 6 judges. To calculate the final score for each competitor, their high score and low score are both dropped, and the remaining 4 scores are averaged.
The list of competitors and their corresponding scores for a meet will be stored in a file. The format of these files will be that each line contains the information for one competitor, starting with their first and last name and followed by their 6 scores. You may assume that there will be no errors in the input files.
Your program should begin by asking the user for the name of the file containing the judging data. It should open the file, then each line of the file, outputting to the screen the name of each competitor and his/her final score. Your program should respond appropriately if it cannot open the file.
For example, if the input file contains the line
Nadia Comanici 10 9.7 10 9.8 9.3 9.2then the output should be
Nadia Comanici: 9.7Finally, after calculating and outputting the total score for each competitor, your program should output the name of the competitor with the highest score, and declare them the winner of the meet.
Your program should then repeat this process indefinitely, giving the user the opportunity to input multiple files and to score multiple meets. Include some mechanism for quitting the program.
Instructions for submitting:
Your program should start with a few lines of
comments giving your name, the date, the course this is for, and
the assignment number. The program should be written with a well organized
structure, and the variables should be named in a useful way.
The program should be formatted consistently and clearly, and should
include comments that explain the code.
When you're done writing and testing the program, print out a copy
of your source code. Also print out a copy of the output of your program.
Bring these to class on the due date and turn them in at the beginning of class.
Also, before the beginning of class on the due date, mail your source
code (your ".cpp" file) to comp1672@cs.du.edu. Do not include it as the
message, instead make it an attachment to the email.