Stage 6 Modify your code to now allow betting. Define and initialize variable chip_balance to 100. Prompt the player to

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Stage 6 Modify your code to now allow betting. Define and initialize variable chip_balance to 100. Prompt the player to

Post by answerhappygod »

Stage 6 Modify Your Code To Now Allow Betting Define And Initialize Variable Chip Balance To 100 Prompt The Player To 1
Stage 6 Modify Your Code To Now Allow Betting Define And Initialize Variable Chip Balance To 100 Prompt The Player To 1 (28.17 KiB) Viewed 21 times
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply