Question: Please don't include global variables. All variables must be within functions. Also, Including comments for the code will be appreciated. Thank You! Name Horse 1

Please don't include global variables. All variables must be within functions. Also, Including comments for the code will be appreciated.
Thank You!
Name Horse 1 Horse 2Payout 5-1 Horse 3Payout 10-1 Horse 4Payout 15-1 Horse 5Payout 50-1 Horse 6Payout 20-1 Horse 7Payout 10-1 Horse 8 Horse 9 Odds of winning 40% 10% 8% 6% 1% 4% 8% 10% 13% Payout Payout 2-1 Payout 5-1 Payout 3-1 This is a C Program. The program will be a menu system. Your program should use the above payout and odds chart. You need to allow a user to add money to his or her bank. You will assume the person starts with no money in their wallet. If the person runs out of money in their bank and wallet he or she cannot play. The person can never bet more money than they have. The program should allow the person to see their bank balance at anytime. The program should allow a deposit or withdraw to be made from the bank at anytime. The money goes in and out of the wallet. The program will allow the person to make a bet and pick a horse...once the bet is placed the program will run the race. Once the race is done the wallet will be updated and a message will be displayed such as Horse 5 won the race you lost XXX dollars -OR- Congratulations your horse "Horse 7" won...you have just won $XXX dollars. You now have $XXX in your wallet. My guess is you gotta allow them to quit...and so on. The program needs to output the name of all past winners along with the times that horse won a race
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
