Question: So far for my code I have it run where if the banking option is selected, it goes to a function that displays a menu

So far for my code I have it run where if the banking option is selected, it goes to a function that displays a menu with switch case options: Deposit, Withdraw, and Exit (to return back to the main menu). My biggest concern is the Banking Situation. To make sure the payout is valid for withdraw, and when placing a wager that the current balance available is correct. If its too difficult, I will greatly appreciated whatever you can do. Thank you.

Program Specifications: --In each race Greg will place a wager and pick a dog. --The dog information will be stored in a structure name DOG as follows: Name, amount to payout if Greg wins, and the odds of this dog winning the race.

--Among other things or menus, the program will have the following menu: [G]amble [B]anking [R]esults of each race that Greg wagered [L]eave the dog track

--If Greg selects [G] the program will ask Greg for his wager and allow Greg to pick a dog. The program will then run the races. The result will be shown to Greg. The results of the race will be stored for future use. --If Greg selects [B] the program will ask Greg if he wishes to withdraw funds or deposit funds from his bank account. --If Greg selects [R] the program will show Greg the results of all previous races. --If Greg selects [L] the program will end.

Cannot Use:

-Use global variables -Use the word goto -Use the break command outside a case statement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!