Need Pseudo Code Python Function Following Problem Develop Solution Flip Coin Given Amount Q37054148

I need the Pseudo Code and Python function forthe following problem:

              Develop a solution to flip a coin a given amount of times andthen print the number of heads and the number of tails.

               The equation to toss the coin is

                               Coin = Integer(Random * 2) + 1

This is called a simulation question where you use a mathfunction to represent mathematically what you might observephysically, by actually flipping a coin.

Write  a function that is part of yoursolution  that has the number of tosses as an inputparameter.  

Scenario: “Flip a ‘coin’ a specified number of times and countthe ‘heads’ and ‘tails’ that occur”.

O.k, Simulate this physical process

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.