Question: Write in C++ please 1. Write a function that randomly returns 0 or 1 . In the main, assign 0 for heads and 1 for

Write in C++ please 1. Write a function that randomly returns 0 or 1 . In the main, assign 0 for "heads" and 1 for "tails". 2. In the main, ask the user to "flip a coin (y or n)?" as many times as they would like. 3. Kee 1 answer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!