Question: Hi, I need help with this programming problem. Please code in C++ . Also, please include screenshots of outputs in terminal and leave comments so
Hi, I need help with this programming problem. Please code in C++. Also, please include screenshots of outputs in terminal and leave comments so that I may use this as a reference for future problems. Please utilize only most common libraries, such as

(Flip a coin) Write a program to randomly flips a fair coin until it sees a Heads followed immediately by a Tail [Event 1]; Write a similar program that continues until it sees a Tail followed immediately by a Tail [Event 2]. Run your program 7496 times and report the total number of Heads and Tails for each two events. (See also the associated extra credit problem)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
