Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Language Create a new Console Application named ScoreCards. In the application, we will be simulating a golf tournament. We will use the scorecard at

C# Language

  1. Create a new Console Application named ScoreCards.
  2. 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.
  3. 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.
  4. 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. Example output:

image text in transcribed

5. In the last line of program's main method, add Console.ReadKey(); to stop the programming from ending automatically.

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. 4

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

2. How much time should be allocated to the focus group?

Answered: 1 week ago