Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I Need help for solving this problem in M68000 assembly language Problem 1) Firs

ID: 3591787 • Letter: I

Question

I Need help for solving this problem in M68000 assembly language  

Problem 1) First, the program will print the programming assignment number, your name, and your class account, all on one line. Then your program will prompt the user to enter two numbers separated by a space. The first number will be a single digit number 1-7. The second number will be a 2 digit number 01-20. You must use the example text provided below in your prompts and answers. Your program will interpret the first number as a day of the week (1-Monday, 2Tuesday … 7 – Sunday). The second number is the number of days to count forward. Your program will then print the resulting day as a string. Example 1: Program #1, Student Name, csscXXXX Enter the start day [1-7] and the number to add [01-20]: 3 04 That day is Sunday. Example 2: Program #1, Student Name, csscXXXX Enter the start day [1-7] and the number to add [01-20]: 5 12 That day is Wednesday.

Explanation / Answer

PairOfDice dice
Die die1
Die die2
int computerTotalScore
humanTotalScore
computerRoundTotal //points for one turn
humanRoundTotal //points for one turn
Feel free to use more variables

public class Die
{
private final int MAX = 6;  
private int faceValue;  
public Die()
{
faceValue = 1;
}
public int roll()
{
faceValue = (int)(Math.random() * MAX) + 1;

return faceValue;
}

public void setFaceValue (int value)
{
faceValue = value;
}

public int getFaceValue()
{
return faceValue;
}

public String toString()
{
String result = Integer.toString(faceValue);

return result;
}
}