Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are required to write a C++ coin flip guessing game to enterta in 3 children. The nature of the game is simple, each player
You are required to write a C++ coin flip guessing game to enterta in 3 children. The nature of the game is simple, each player starts the game with 10 candies and is allowed to play 3 rounds coin flip guessing game. Before the start of each guess, the player needs to decide how many candies to be offered. The number of candies offered will be doubled if the player guessed the correct side of the coin. If the player makes a wrong guess, the candies offered will be forfeited. The current player's turn will end if he/she runs out of candies or after finishing 3 rounds. When all players finish their turn, the program will announce the winner based on who has the most candies. The children are known to throw a huge tantrum if the game is buggy, so please ensure that the program you write can deal with every possible outcome (draw or no winners) and is able to deal with any wrong or illogical input. A sample flow of the program is shown in Fig 1 , you are free to use your own kid-friendly prompt and statements to make your game more aesthetically pleasing and fun
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started