DiceAccumulator - snakeEyes:int - twos:int - threes:int - fours:int - fives:int
ID: 3759851 • Letter: D
Question
DiceAccumulator - snakeEyes:int - twos:int - threes:int - fours:int - fives:int - sixes:int + addSnakeEyes():void + addTwos():void + addThrees():void + addFours():void + addFives():void + addSixes():void + getSnakeEyes():int + getTwos():int + getThrees():int + getFours():int + getFives():int + getSixes():int DiceAccumulator - This class has variables that are the accumulators (or counters) for when both dice roll the same number. • all add methods – add one to the instance variable which is the accumulator • all get methods – get the value of the instance variable
Explanation / Answer
DiceAccumulator -
snakeEyes:
int - twos:
int - threes:
int - fours:
int - fives:
int - sixes:
int + addSnakeEyes():
void + addTwos()
:void + addThrees()
:void + addFours():
void + addFives():
void + addSixes():
void + getSnakeEyes():
int + getTwos():
int + getThrees():
int + getFours():
int + getFives():
int + getSixes():
int DiceAccumulator -
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.