Page 1 of 1

5) Let's say you and your friend are trying to predict the outcome of a flip of a coin. In MATLAB, create a random coin

Posted: Wed Apr 27, 2022 3:10 pm
by answerhappygod
5 Let S Say You And Your Friend Are Trying To Predict The Outcome Of A Flip Of A Coin In Matlab Create A Random Coin 1
5 Let S Say You And Your Friend Are Trying To Predict The Outcome Of A Flip Of A Coin In Matlab Create A Random Coin 1 (14.12 KiB) Viewed 35 times
5) Let's say you and your friend are trying to predict the outcome of a flip of a coin. In MATLAB, create a random coin flip with heads being 1 and tails being 2. Ask the user to predict what the outcome will be. If the user predicts right display a winning sentence and vice versa for if the user does not predict right. Afterwards, ask the user if they want to play again or stop playing. If the user elects to play again the program should run itself from the beginning asking the user for their prediction.