Question
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
import java.util.Scanner;public class DiceGame {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// constant
//There are at least 5 numbers that could be named constants;
// you must make at least 2 of them be named constants
// (they should also be all uppercase and declared first).
final int MIDDLE_VALUE = 5;
final int LESSER_QUOTE = 2;
final int EQUALLY_QUOTE = 8;
final int LARGER_QUOTE = -3;
final int CHECKING_POINT = 5000;
final int FINISHED_POINT = 50000 ;
// input stream
Scanner keyboard = new Scanner(System.in);
// Ask the user how many sides the second die should have; store the response.
System.out.print("Please enter the number of sides on the second die: ");
int nunber = Integer.parseInt(keyboard.nextLine());...