### (Solved) : Write C Program Simulates Random Flipping Two Coins Start Program Prompt User Amount Times Q35593439

Write a C++ program that simulates the random flipping of twocoins. At the start of the program prompt the user for the amountof times to flip the coin. Display each flip, and afterward displaythe percentages of heads and tails for each coin. Also, display thepercentage that both coins were heads, and the percentage bothcoins were tails. Output from your program might look likethis:

How many times would you like to flip the coins?

2

H T

H H

Coin1 was heads 100%, and tails 0%

Coin2 was heads 50%, and tails 50%

The percentage both coins were heads was 50%

The percentage both coins were tails was 0%

Do you want to continue (Y/N)?

Y

How many times would you like to flip the coins?

5

H T

T H

H H

H H

T H

Coin1 was heads 60%, and tails 40%

Coin2 was heads 80%, and tails 20%

The percentage both coins were heads was 40%

The percentage both coins were tails was 0%

Do you want to continue (Y/N)?

n