Question: In C#. Create a golf game. Allow for two players. Prompt for the player names. Each player plays 18 holes. Use an array for each
In C#. Create a golf game. Allow for two players. Prompt for the player names. Each player plays 18 holes. Use an array for each player to hold their number of swings for each hole. Logical functions should be implemented. For each hole, player has a number of swings. Determine the players swings by generating a random number between 1 and 4. Store each players number of swings in the array. After completing the 18 holes, add up the number of swings for each hole for each player. The player with the fewest number of swings is the winner. Print out the player names, total swings, and the winner. After printing out the winner, print out the player names and the number of swings for each hole for each player.
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
Answer Python version 27 Python program to Create a Golf Game import random input the ... View full answer
Get step-by-step solutions from verified subject matter experts
