Question: Design a programming solution named, DiceGame, that demonstrates the abilityto utilize methods. 1. Using JAVA, code a method that will accept the value of two
Design a programming solution named, DiceGame, that demonstrates the abilityto utilize methods.
1. Using JAVA, code a method that will accept the value of two dice and return the sum. Name the method sumDice().
2. Using JAVA, code a method that will accept the value of two dice and return the highest value. Name the method highDice().
3.Using JAVA, code a method that will roll the dice and output the value. Name the method rollDice().
4. Using JAVA, code the main method to call the rollDice method and display the output for the two dice values, the sum of the dice and highest dice rolled.
5. Run the DiceGame program and include the screenshot of your output
Step by Step Solution
There are 3 Steps involved in it
import javautilRandom public class DiceGame public stati... View full answer
Get step-by-step solutions from verified subject matter experts
