Reference no: EM132271309
Question:
The Marietta Country Club has asked you to write a program to gather, then display the results of the golf tournament played at the end of March. The Club president Mr. Martin has asked you to write two programs.
The first program will accept as input each player''s first name, last name, and golf score and then for each player, save this data in a file named golf.txt. Please note, there are 16 players in the tournament so you will need to save data for 16 different players in the text file.
The second program will read the data for each player from the golf.txt file and display them with appropriate headings above the data being displayed. Additionally, the second program will determine and mark each player as being either over, under, or at par.
If the score is = Par, then display ''Made Par''
If the score is < Par, then display ''Under Par''
If the score is > Par, then display ''Over Par''
There are 16 players in the tournament. Par for the course is 80. The data is as follows:
Andrew Marks 72
Betty Franks 89
Connie William 92
Donny Ventura 78
Ernie Turner 81
Fred Smythe 75
Greg Tucker 72
Henry Zebulon 83
Ian Fleming 72
Jan Holden 84
Kit Possum 79
Landy Bern 93
Mona Docker 98
Kevin Niles 80
Pam Stiles 87
Russ Hunt 73
REMEMBER to put your name on the lab with comments, and comment throughout the program with what the program is doing.