ebug the program in order for it to run as stated in its specification (Note: No adding of lines of code, no need to write comments). Underline the entire line that contains the bug. There should be 2 files to be uploaded. The .java file and the word/pdf/image file that contains the underlined codes. The program in the next page, when ran, will let the user roll a pair of dice n-times (i.e. generate a number between 1 and 6), where n is a positive integer entered by a user. The program then outputs the pair of numbers rolled by the dice, as well as the sum of the numbers rolled by each pair of dice. The pairs of numbers are stored in a 2-dimensional array, and the sumof each pair is stored in a single-dimensional array.
Debug the
for it to run as stated in its specification (Note: No adding of lines of code, no
need to write comments). Underline the entire line that contains the bug. There should be 2 files to be uploaded. The .java file and the word/pdf/image file that contains the underlined codes.
The program in the next page, when ran, will let the user roll a pair of dice
n-times (i.e. generate a number between 1 and 6), where n is a positive integer entered by a user. The program then outputs the pair of numbers rolled by the dice, as well as the sum of the numbers rolled by each pair of dice. The pairs of numbers are stored in a 2-dimensional array, and the sumof each pair is stored in a single-dimensional array.
Step by step
Solved in 5 steps with 8 images