Design a programming solution named, DiceGame, that demonstrates the abilityto utilize methods. 1. Using JAVA, code a
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 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
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill