Menu

Write Program Simulate Tossing Coin Weightedsuch Lands Heads 60 Percent Time Shouldwrite F Q43834907

Write a program to simulate tossing a coin that has beenweightedsuch that it lands with heads up 60 percent of the time.You shouldwrite a functionimbalancedCoinFlip() that returns 1 if atails wasflipped and a 0 if a heads was flipped. You must alsowrite afunction performImbalancedFlips(int n), which takesthenumber ofimbalanced coin clips to execute. This function will printthenumber of heads and tails obtained to the console.

Expert Answer


Answer to Write a program to simulate tossing a coin that has been weightedsuch that it lands with heads up 60 percent of the time…

OR