3. Write a program to simulate tossing a coin that has beenweighted such that it
ID: 3611829 • Letter: 3
Question
3. Write a program to simulate tossing a coin that has beenweighted such that it lands with heads up 60 percent of the time.You should write a function imbalancedCoinFlip() that returns 1 ifa tails was flipped and a 0 if a heads was flipped. You must alsowrite a function performImbalancedFlips(int n), which takes thenumber of imbalanced coin clips to execute. This function willprint the number of heads and tails obtained to the console.Im having trouble doing this program. Thanks for all the help!