Write an application to simulate the rolling of two eight-sided dice (eight-sided dice are used in various role-playing games). The application should use an object from the class Random to roll the first die and then again to roll the second. Each die can have the values of 1 to 8 and the sum of the dice can have values from 2 to 16. Use a one-dimensional array to tally the number of times each possible sum appears. The application should roll the dice 48,000 times. Display the results in a tabular format and determine if your results are reasonable.
Write an application that is an extension of part A by using a two-dimensional array to tally the actual combinations of rolls. A roll of 2 and 7 would be different than a roll of 7 and 2. The application should roll the dice 64,000 times. Display the results in a tabular format and determine if your results are reasonable.