Stage 6 Modify your code to now allow betting. Define and initialize variable chip_balance to 100. Prompt the player to
Posted: Mon May 09, 2022 7:16 am
Will relate to -
https://www.answers.com/homework-help/que ... -q97311816
and https://www.answers.com/homework-help/que ... -q97137558
Please leave answer in the form of C++
Stage 6 Modify your code to now allow betting. Define and initialize variable chip_balance to 100. Prompt the player to enter a bet; read the bet. If the player wins, increase the chip_balance by the bet and display the new balance. If the player loses, decrease chip_balance by the bet and display the new bank balance. If the player hits the post, decrease chip_balance by the bet and display the new bank balance. Check if chip_balance has become zero, and if so, display the message "Sorry, you're all out of chips! *** Game Over ***" to the screen.
https://www.answers.com/homework-help/que ... -q97311816
and https://www.answers.com/homework-help/que ... -q97137558
Please leave answer in the form of C++
Stage 6 Modify your code to now allow betting. Define and initialize variable chip_balance to 100. Prompt the player to enter a bet; read the bet. If the player wins, increase the chip_balance by the bet and display the new balance. If the player loses, decrease chip_balance by the bet and display the new bank balance. If the player hits the post, decrease chip_balance by the bet and display the new bank balance. Check if chip_balance has become zero, and if so, display the message "Sorry, you're all out of chips! *** Game Over ***" to the screen.