Question
C programming assignment, Horse Track Assume you are addicted to gambling on the Horses. Assume you have 75 dollars and go to the track to
C programming assignment, Horse Track
Assume you are addicted to gambling on the Horses. Assume you have 75 dollars and go to the track to bet on the ponies.
The program will ask the user of the 75 dollars he or she has how much would he or she like to wager on a horse. They cannot wage more than they have or negative money.
The program will ask the user to pick his or her favorite horse (between 1 and 9).
You can assume all horses have exactly a 1 in 9 chance of winning.
You are to simulate a race.
If the gambler wins he or she gets 10 times the wager. If they lose they lose their wager.
Once a race ends you are to tell the gambler how much money they now have.
You are to ask the gambler if they wish to bet on another race or not.
You are to continue until the gamble is BROKE or decides to leave the track.
You are to turn in your *.c code and your design tool.
Remember to name your source document lastName-Horses.c
Part2:
Design tool 1: (IPO Chart) (Input, Process, Output)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started