Write a script that simulates a casino machine to play a


Question: Write a script that simulates a casino machine. To play a single round on the machine user pays $ 5. Now when the user start the machine, the machine rolls a pair of dice (simulate both dice with help of random number generator) and user only wins if the same number appears on both the dice. The user wins money equal to 2 times the number on the either dice (EX. If both dice show 4 user will earn back 4*2= 8$....If one dice show 3 and other dice 5 user will earn 0$ as numbers as different).

Simulate four rounds on the machine by a user and calculate the final winnings or loss of the user.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a script that simulates a casino machine to play a
Reference No:- TGS0947008

Expected delivery within 24 Hours