In C#. Create a golf game. Allow for two players. Prompt for the player names. Each player
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 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.
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba