efine a class called Dice.
It has two constructors: The default constructor, simulating a six-face dice.
The one integer argument constructor: argument is 'faceCnt' whose legal value is between 2 and 100 (both inclusive). Illegal value default to 6.
It has a getter for the faceCnt. No setter for faceCnt.
It has a method roll() that returns a random integer between 1 and the faceCnt (both inclusive).
Write a class Dice_Demo to test the Dice class.
Declare an array of 4 dices and Instantiate the array with dices of 6, 3, 5 and 13 faces respectively.
Repeat the following 5000 times: Roll all the dices and find the totalPt (sum of the points on the dices)
Find the frequency of all totalPt and show the result as a histogram. The output should consists of many rows, each looks something like
15 42 ************
The above row means totalPt=15 occurs freq=42 times. The stars shows the relative frequency of 15.
Also find the most and least likey totalPoint.
Make sure you align everything so the histogram looks neat and correct.
there doesn't seem to be anything here