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
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.