![]() ![]() * Write the playRoulette() function here */ ![]() Printf("You won: $%d\n", currentFunds - initialFunds) ![]() Printf("Initial Amount: %d\n", initialFunds) Printf("Final Amount: %d\n", currentFunds) if user chose to play slots and has sufficient funds Printf("\nERROR: Not sufficient funds.\n") Printf("Number of Slots Games Played: %d\n", slotGames) Printf("Number of Roulette Games Played: %d\n", roulGames) Printf("Number of Games Played: %d\n", numGamesPlayed) Printf("Initial Funds: %d\n", initialFunds) Printf("Current Funds: %d\n", currentFunds) prompt user for decision (play roulette, play slots, print report, quit game) Printf("Current Funds: %d\n\n", currentFunds) While (currentFunds > 0 || menuOption != 4) Printf("Rules: \n\nThis program gives you the option to play either roulette or slots.\n\nIn roulette you have the option to either place a bet on a color (red or black) or a number (0 - 36).\n\nIn the slots game, there are three reels that will spin and land on a number \n(1-4) and according to what each reel lands on will determine if you win, lose, or remain at the same balance.\n\nGood Luck!") #define SPACE 2 // Number of newlines to print out #define MAXLINE 100 //Max number of user input characters ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |