Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 input each player's first name, last name, handicap and golf score and then save these records in a file named golf.txt (each record will have a field for the first name, last name, handicap and golf score).

The second program will read the records from the golf.txt file and display them with appropriate headings above the data being displayed.

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 11.2 72

Betty Franks 12.8 89

Connie William 14.6 92

Donny Ventura 9.9 78

Ernie Turner 10.1 81

Fred Smythe 8.1 75

Greg Tucker 7.2 72

Henry Zebulon 8.3 83

Ian Fleming 4.2 72

Jan Holden 7.7 84

Kit Possum 7.9 79

Landy Bern 10.3 93

Mona Docker 11.3 98

Kevin Niles 7.1 80

Pam Stiles 10.9 87

Russ Hunt 5.6 73

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions