(Solved) : Write Program Simulate Tossing Three Coins Coin Two Sides One Called Head Called Tail Prog Q35611836
Write a program to simulate tossing three coins. Acoin has two sides: one called Head and the other
called Tail. The program must simulate tossing three coins untilall three show Heads. Display a heading
of “toss coin1 coin2 coin3”, and then in each line count each tossand display the result of the three
coins from each toss, including the last one showing all threeHeads.
Rewrite the program created to answer the firstquestion . This time use the random() of Math
class instead of Random class to handle tossing the coins.Thisshould be a java program.
Read the second paragraph.