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:
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/650aa0f947182_1695195384579.jpg)
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...
-
At December 31, 2017, Glover Corporation provided you with the following information: Defined benefit obligation, December 31, 2017 ................................... $3,400,000 Plan assets at fair...
-
A 20.0-g sample of ice at 210.0oC is mixed with 100.0 g of water at 80.0oC. Calculate the final temperature of the mixture assuming no heat loss to the surroundings. The heat capacities of H2O(s) and...
-
Why might the forming of teams be more difficult in primary care settings than in single-specialty physician offices or other businesses? Teams are especially needed in primary care. Primary care...
-
Ford Motor (automotive) and Caterpillar (heavy equipment) both use the LIFO inventory valuation method. Caterpillar uses it for 75% of its inventories and Ford for 25% of its inventories. Data from...
-
Pharoah Products uses both special journals and a general journal. Pharoah also posts customers' accounts in the accounts receivable s bsidiary ledger. The postings for the most recent month are...
-
SecuriCorp operates a fleet of armored cars that make scheduled pickups and deliveries in the Los Angeles area. The company is implementing an activity-based costing system that has four activity...
-
Case study (questions 1-6) Tracey is a worker in a community health service who offers support and assistance to people with alcohol and drug issues. Today she is meeting with Sophie, a 15-year-old...
-
How do leaders navigate the complex interplay between individual moral autonomy and organizational ethical standards, fostering a climate of open dialogue, ethical reasoning, and collective...
-
Consider an RL circuit with a 10 Volt battery, a 5 Ohm resistor, and an inductor (all in series). 0.2 seconds after the circuit is connected, the current flowing in the circuit is 0.5669 Amps. How...
-
Classify the following items as per their respective category with regards to value chain, quality cost, activity based costing and theory of constraints. The items given are mismatched and needs to...
-
Because of existing leases, a property is projected to have NOI of $ 9 0 , 0 0 0 per year for each of the next 5 years. All of the leases will have expired at the end of the 5 years. If the property...
-
If you invest $10,000 and your NPV is $4,000, what is the present value of your future cash flows?
-
If angle A = -170, what is the radian measure of A? Enter an exact fraction that contains the symbol. Provide your answer below:
-
The figure shows six containers, each of which is filled from the top. Assume that water is poured into the containers at a constant rate and each container is filled in 10 seconds. Assume also that...
-
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...
-
The introduction of FRS 3, Reporting Financial Performance, has resulted in a considerably expanded profit and loss account with related disclosures and a new primary statement. The standard is...
-
Polaroid Corporation, a manufacturer of instant cameras and film, changed from an accelerated depreciation method for financial reporting purposes to the straight-line method for assets acquired...
-
Signal Company has purchased land and a warehouse for $18,000,000. The warehouse is expected to last 20 years and to have a residual value equal to 10 percent of its cost. The chief financial officer...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App