Answered You can hire a professional tutor to get the answer.

QUESTION

Task 1: Simulate the flipping of coins and rolling of a sixsided dice. Hint: A coin has two outcomes head or tail, and a six sided dice has six...

Task 1: Simulate the flipping of coins and rolling of a sixsideddice.Hint:• A coin has two outcomes‐ head or tail, and a six sided dice has six outcomes‐ 1 to 6.• Use rand function to generate pseudo‐random variable, and then simulate flipping ofcoins and rolling of a dice.Here is one example in MATLAB to simulate the flipping of coin.coin_flip=round(rand(1))%there will be two results 0 or 1. We can allocate them as the%two outcomes: head or tailTasks:a. Now with the help of the hint try to simulate the rolling of a dice.b. Simulate the flipping of coins for 1000 times. Can you suggest a way to find out theprobability of having tail and head when a coin is flipped for 1000 times?

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question