The Marietta Country Club has asked you to write a program to gather, then display the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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 lan Fleming 4.2 72 7.7 84 Jan Holden Kit Possum Landy Bern Mona Docker Kevin Niles Pam Stiles Russ Hunt 7.9 79 10.3 93 11.398 7:180 10.9 87 5.6 73 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 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. 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 lan Fleming 4.2 72 7.7 84 Jan Holden Kit Possum Landy Bern Mona Docker Kevin Niles Pam Stiles Russ Hunt 7.9 79 10.3 93 11.398 7:180 10.9 87 5.6 73 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
Expert Answer:
Answer rating: 100% (QA)
To complete Mr Martins request you can create two C programs The first program will collect player data and save it to a file and the second program w... View the full answer
Related Book For
Financial and Managerial Accounting the basis for business decisions
ISBN: 978-0078111044
16th edition
Authors: Jan Williams, Susan Haka, Mark Bettner, Joseph Carcello
Posted Date:
Students also viewed these programming questions
-
5. Zayas has idenitified the following two mutually exclusive projects. Year Cash Flow (A) Cash Flow (B) Year Cash Flow (A) Cash Flow (B) 0 -$78,500 -$78,500 1 $43,000 $21,000 2 $29,000 $28,000 3...
-
How do you explain the current event you have chosen using Structural Functionalism, Conflict Theory and Symbolic Interactionism?
-
A group of five successful business people were awarded the franchise for one of two new expansion teams in the North American Sports League (NASL). The professional sports franchise was named the...
-
On January 15, Tundra Co. sold merchandise to customers for cash of $42,000 (cost $28,500). Merchandise costing $10,500 was sold to customers for $15,800 on January 17; terms 2/10, n/30. Sales...
-
A landscaper tries to plumb the tree shown in Fig. P3.82 by applying a 54-lb force (a) Replace that force with an equivalent force-couple system at C. (b) Two helpers attempt to plumb the same tree,...
-
Assuming internal network uses IP address (192.168.100.0/24), calculate the subnetting process ( step by step ) based on the following information: Accounting (16 IP) Human Resource (8 IP) Offices...
-
The Honeybee dataset contains data collected from the USDA on the estimated number of honeybee colonies (in thousands) for the years 1995 through 2012. We use technology to find that a regression...
-
Calculating EAC A five-year project has an initial fixed asset investment of $240,000, an initial NWC investment of $20000, and an annual OCF of $32,000. The fixed asset is fully depreciated over the...
-
A company is projected to generate free cash flows of $429 million next year, growing at a 4.7% rate until the end of year 3. After that, cash flows are expected to grow at a stable rate of 2.6%. The...
-
Consider an individual whose preferences are defined over bundles of non-negative amounts of each of two commodities. Suppose that this individual's preferences can be represented by a utility...
-
Takaful company has the following information: Earned contributions SR 500 Net claim incurred SR 100 Total expenses SR 200 Net income SR 100 Gross contributions SR 600 Net investment income SR 70...
-
What are primary and secondary data, and when would you use each? Give an example of each data type.
-
What needs to be considered when deciding to use television advertising in an IMC campaign to ensure a cohesive visual and verbal message?
-
What are three reasons why schools are considered logical places for health promotion?
-
Give an example of effective health communication for the individual and for the greater community.
-
Why do actual risk and risk perception tend to differ from one another?
-
Explain Function of DBA
-
Establish identity. cos( + k) = (-1)k cos , k any integer
-
Listed below are eight events or transactions of GemStar Corporation. a. Made an adjusting entry to record interest on a short-term note payable. b. Made a monthly installment payment of a fully...
-
A recent balance sheet of Sweet Tooth, Inc., included the following items, among others. (Dollar amounts are stated in thousands.) Cash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
-
FlyWiz, Inc., is a small manufacturer of professional fishing equipment. The company has two divisions: the Rod Division and the Reel Division. Data for the month of January are shown on the...
-
Consider three taxpayers who are in the following tax brackets: Alice 25% Brad 35% Camille 40%
-
The XYZ Partnership reports the following items during 2022: Calculate ordinary income (or loss) by completing page 1 of Form 1065, and complete Schedule K (Partners Shares of Income, Credits,...
-
Charles is a 60% partner in CD Partnership, a calendar year partnership. For 2023, Charles received a Schedule K-1 that reported his share of partnership items as follows: In addition, Charles and...
The Einstein Theory Of Relativity A Trip To The Dimension 1st Edition - ISBN: 1589880447 - Free Book
Study smarter with the SolutionInn App