Question: / * The program implements a dice rolz with random value between 1 and 6. * The rolled value is stored in a variable called

 / * The program implements a dice rolz with random value

/ * The program implements a dice rolz with random value between 1 and 6. * The rolled value is stored in a variable called "diceRoll" * Use that variable to implement the following logic * if the diceRoll is 1 or 2 : print "Low value" * if the diceRolz is 3 or 4: print "Hedium value" * if the diceRoll is 5 or 6 : print "High value" / public static void main(String[] args) f int min=1 int max=6; int range =maxmin+1 int diceRoll = (int) (Math. randon() range) +1; II Write your logic below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!