Question: This program, using C++, should mimic tossing a coin. 0 for heads and 1 for tails. The computer will generate a 1 or 0 when
This program, using C++, should mimic tossing a coin. 0 for heads and 1 for tails. The computer will generate a 1 or 0 when using the modulus operator of 2.
Then you are to make your call 1 for heads, two for tails, and keep track of how many wins for the computers and how many wins for the user. Once you have played best out of seven, you should display the results.
Make sure the user only enters a 0 or a 1 for their guess. Make sure the program runs until the game is over.
Please use good comments. (Finish in 2-3 hours if possible please)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
