Question: / / You will need to write a static method named scoreWithNumbers. import java.util.Random; public class ScoreDice { public ScoreDice ( long seed ) {
You will need to write a static method named scoreWithNumbers. import java.util.Random;
public class ScoreDice public ScoreDicelong seed return rnextInt;public int score int roll rollD; scoreWithNumbers returns a score based on the values the returned score is the returned score is smaller value is eg if given and it returns TODO write your code below this comment. Scanner input new ScannerSystemin; long seed input.nextLong; System.out.printlnScore: scoreDice.score;
scoreWithNumbers returns a score based on the values
of its inputs, as such:
If both inputs are or if both inputs are then
the returned score is
If both inputs are the same but not or then
the returned score is
If the inputs are different, the score is whatever the
smaller value is eg if given and it returns
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
