Answered step by step
Verified Expert Solution
Question
1 Approved Answer
** This is a c# code, not a python code please don't reply with a python code. ** Create a new Console Application named ScoreCards.
** This is a c# code, not a python code please don't reply with a python code. **
- Create a new Console Application named ScoreCards.
- In the application, we will be simulating a golf tournament. We will use the scorecard at the bottom of the page to reference the par for each hole. In golf, there is a front nine holes and a back nine holes, comprising a total of 18 holes for a round. Each hole has par (the score the golfer is trying to tie or beat). The golfer's first nine holes are added together for the front nine score. The golfer's second nine holes are added together for the back nine score. The two nines are then added for the total score. There will be four golfers in the tournament.
- Create an array to hold the par for each of the 18 holes, in order. Create a multidimensional rectangular array to hold four golfers and 18 holes. Create random scores for each golfer and each hole, then add to the array. The score must be no more than two under the par score and two over the par score for the given hole.
- Display to the screen the the individual hole number, the par for the hole, and the scores each golfer shot. Add the front nine and back nine scores separately, then total the front nine and back nine for the total.
Ex output:
Hole 1 4 4 mm in 4 5 6 7 8 9 Front 10 11 12 13 14 15 16 17 18 Back Total Par Golfer 1 Golfer 2 Golfer 3 Golfer 4 4 6 2 3 4 3 3 4 3 4 4 4 4 3 5 4 6 6 4 6 4 4 6 5 5 6 4 4 3 5 3 2 3 4 4 2 3 6 40 33 34 38 4 2 5 4 2 3 1 4 3 3 5 4 7 7 5 4 4 2 4 4 4 4 3 3 4 5 5 5 7 6 4 3 3 4 6 3 5 3 4 4 2 5 29 38 38 38 69 71 72 76 ww WUPP APNAV VW UWNV DVnw. 4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started