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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!