Question: In this module you learned about making decisions. You learned about the syntax and rules used to develop programs containing decisions and how the logic
In this module you learned about making decisions. You learned about the syntax and rules used to develop programs containing decisions and how the logic can make your programs more robust.
Draw a flowchart for a program that shows the logic for a program that generates a random number. The program will simulate tossing coin.
The program should generate a random number(0 and 1).
If the random number is 0, then it should display the word "Heads".
If the random number is 1, then it should display the word "Tails".
You want to add the code so the player can enter their name, then display a welcome message using their name.
You also want to display a message that describes what the program will do.
When your program ends, thank the person for playing.
There are NO LOOPS, NO Functions or NO MODULES at this point. Everything at this point is in sequence(Line-By-Line). You can add comments at the beginning of each block to explain what the code is doing..
Make a working version of this program in Python.
Complete the flowchart.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
