SumOfDice - Simulate rolling a pair of dice


Write a program SumOfDice.java that simulates rolling a pair of 6-sided dice 100 times.

The randbetween method will be useful here.

You will need a loop that repeats 100 times.

You will need strings to track the number of dice sums (sum=2 to sum=12).

At the end, print a frequency chart of the dice sums that looks like the following:

Dice Sums:

 2: ***
 3: ******
 4: **********
 5: **************
 6: ***********
 7: **********
 8: *************
 9: ***************
10: *******
11: **********
12: *

Hints:

Link to SumOfDice.java