Question
Asked by:
$1.00 please help me understand how to make this program.
- From Computer-Science: General-CS
- Closed, but you can still post tutorials
- Due on Aug. 01, 2009
- Asked on Jul 29, 2009 at 6:44:35PM
Q:(Dice rolling )
write an application to simulate the rollong of two dice. The application should use an object of class random. once to roll the first dice and again to roll the second dice. The sum of the two values should be calculated. Each dice can show an integer value from 1 to 6 so the sum of the values will vary from 2 to 12 with 7 being the most frequent sum and 2 to 12 the least frequent.The application should roll the dice 36,000 times. use a one dimensional array to tally the number of times each possible sum appears. Display the result in tabular format. Determine whethr the totals are reasonable(e.g., there are six ways to roll a seven, so approximately one sixth of the rolls should be seven. This would be in java programming.



