Answer to Question #337000 in UNIX/Linux Programming for Raphael Caamano

Question #337000

Part 1:


You will use the Random function to write the following JAVA program. Write a program named Dice4.java.


  • You are given two dices.
  • Each dice has 6 faces and can generate a number between 1 and 6.


The minimum number generated by the two dice is 2 and maximum number is 12. Throw the dice and if the number generated is less than or equal to 3 than you lose and if it is greater or equal to 9 than you win and if you get a number between 4-8 then it is a tie. You will make use of Random function and a selection structure (if/else) to write the code.

 

Save the document as Dice4.java.   


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS