Question: Question 2 10 pts Program 2 Use the given flowchart to create your program. Upload your.java file when complete. When you generate your random number,


Question 2 10 pts Program 2 Use the given flowchart to create your program. Upload your.java file when complete. When you generate your random number, also make sure that it is being converted to and saved as an integer value of either 1 or 2 (no decimal points in between). Ask Would you like to lip a coin? Entero for no" Get user input for int choice variable choice True False Generate a random number of 1 or 2. Save it in an int variable called 'num' Display "You got heads! True num L False Display "You got True num == 2 False Display "Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
