Sample Rolling Dice 2 06301113

Download Solution: Click to Download Solution
Solution File Name: RollingDice06301113.docx
Unzip Password: prestobear.com


1.Die.java
public class Die {
	private final int MAX = 6;  // maximum face value

	private int faceValue;  // current value showing on the die

	//-----------------------------------------------------------------
	//  Constructor: sets the initial face value.
	//-----------------------------------------------------------------
	public Die() {
	}

	//-----------------------------------------------------------------
	//  Rolls the die and returns the result.
	//-----------------------------------------------------------------
	public int roll() {
	}

	//-----------------------------------------------------------------
	//  Face value mutator.
	//-----------------------------------------------------------------
	public void setFaceValue (int value) {
	}

	//-----------------------------------------------------------------
	//  Face value accessor.
	//-----------------------------------------------------------------
	public int getFaceValue(){
	}

	//-----------------------------------------------------------------
	//  Returns a string representation of this die.
	//-----------------------------------------------------------------
	public String toString() {
	}
}

2.PairOfDice.java
public class PairOfDice {
	
}

3.RollingDice2.java
public class RollingDice2 {
	//-----------------------------------------------------------------
	//  Creates and exercises a PairOfDice object.
	//-----------------------------------------------------------------
	public static void main (String[] args) {
	}
}
Assignment Help!!!

Add Comment