The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:Elementary,Middle School,High School,College,University,PHD
MBA IT, Mater in Science and Technology Devry Jul-1996 - Jul-2000
Professor Devry University Mar-2010 - Oct-2016
public class Game50{
static final int SIZE = 50; // target score to be exceeded private
int bound; // number of allowable rolls to reach 50
private int rollCount; // number of rolls
private int total; // accumulated dice roll sum
private boolean winner; // game a win or loss?
public Game50(int rollBound){
bound = rollBound; // rollBound value supplied in constructor call in driver class
}
public void playGame(){
initializeGame();
while(!gameOver()){
advancePlay();
showGame();
judgeAndReport();
In the answer box below, enter code that implements the Game50 method initializeGame, gameOver and roll.
-----------