Question: //*** //*** Write a switch statement on variable dice2Reroll using the toUpperCase method //*** The cases being X, S, D, 0, and //*** when
//*** //*** Write a switch statement on variable "dice2Reroll" using the "toUpperCase" method //*** The cases being "X", "S", "D", "0", and "" //*** when case "X", set variable "turnOver" to true and variable "gameExit" to true //*** when case "S", call method "displayScoreSheet" passing no arguments //*** when case "D", call method "displayDice" passing no arguments //*** when case "0", set variable "turnOver" to true //*** when case "", call method "displayErrorMessage" passing no arguments //*** //*** Include a break statement for every case. //***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
