Answered step by step
Verified Expert Solution
Link Copied!

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

  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.

Ex output:

image text in transcribed

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2022 Grenoble France September 19 23 2022 Proceedings Part 4 Lnai 13716

Authors: Massih-Reza Amini ,Stephane Canu ,Asja Fischer ,Tias Guns ,Petra Kralj Novak ,Grigorios Tsoumakas

1st Edition

3031264118, 978-3031264115

More Books

Students also viewed these Databases questions

Question

2. (1 point) Given AABC, tan A b b

Answered: 1 week ago

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago

Question

Question What is the doughnut hole in HSA coverage?

Answered: 1 week ago