[Solved]Develop Solution Flip Coin Given Amount Times Print Number Heads Number Tails Equation Tos Q37156441
Develop a solution to flip a coin a given amount of times andthen print the number of heads and the number of tails. Theequation to toss the coin is Coin = Integer(Random * 2) + 1.
When Coin = 1 the toss is heads, and when Coin = 2 the toss istails. Random returns a number between 0 and 1, including 0 but not1. Therefore, when Random is less than 0.5, Coin will equal 1: andwhen Random is greater than or equal to 0.5 and less than 1, Coinwill equal 2.
Write the pseudo code first and then code it in Python.
Write a function that is part of your solution thathas the number of tosses as an input parameter.
Expert Answer
Answer to Develop a solution to flip a coin a given amount of times and then print the number of heads and the number of tails. Th… . . .
OR

