Question: I need the java psuedocode and if you could it explain it please. Thanks. A program is developed to simulate the roll of dice in

I need the java psuedocode and if you could it explain it please. Thanks. A program is developed to simulate
the roll of dice in a game. Three dice
Figure 2: The example data stored in the DICEDIAL array
are thrown, with faces that have
numbers from 1 to 6. The dice are
thrown seven times, and the data are
stored in a two-dimensional array
called DICEDIAL (see Figure 2).
0
[1]
[2]
[3]
[4]
The sub-program
DuplicateNum(DICEDIAL,R)
[5]
checks whether there are repeated
[6]
numbers in row R. If the numbers
are not repeated, it returns 0, otherwise it returns the repeated number.
The DuplicateNum() sub-program will produce the following from the values used in
Figure 2:
DuplicateNum(DICEDIAL,0) returns 2
DuplicateNum(DICEDIAL,1) returns 4
DuplicateNum(DICEDIAL,2) returns 0
Construct an algorithm in pseudocode for the sub-program
DuplicateNum(DICEDIAL,R).[4])I
 I need the java psuedocode and if you could it explain

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!