Question: Can someone help write this in java ... Write a program that simulates the tossing of a coin. The program should wait for the user
Can someone help write this in java ... Write a program that simulates the tossing of a coin. The program should wait for the user to press a key, then generate a random number in the range of 0 through 1. If the number is 0, the program should display the image of a coin with heads facing up. If the number is 1, the program should display the image of a coin with tails facing up.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
