Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solution must be in C# Create a new Console Application named ScoreCards. In the application, we will be simulating a golf tournament. We will use

Solution must be in C#

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 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:

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 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions