Write a program that throws two dice and keeps track of the number of times each pair of numbers is thrown. You will need to use a 2-dimensional array to keep track of the stats. For example: We throw the 2 dice and get a 4 and a 6, so the two dimensional array should be updated thusly: 0 1 2 3 4 5 +---+---+---+---+---+---+ 0 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 1 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 2 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 3 | 0 | 0 | 0 | 0 | 0 | 1 | +---+---+---+---+---+---+ 4 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 5 | 0 | 0 | 0 | 1 | 0 | 0 | +---+---+---+---+---+---+ The index of the array is meant to represent the combination of the two numbers. Since we are dealing with zero-based arrays, we have to place the numbers thrown in the n-1th slot [4-1 == 3 and 6-1 == 5 as shown above]. Notice also that all of the other cells contain a `0', which means that those combinations have not been thrown yet. Therefore, make sure to zero out your array before you add to each cell. Now if we throw a 1 and a 4 we update our dice matrix thusly: 0 1 2 3 4 5 +---+---+---+---+---+---+ 0 | 0 | 0 | 0 | 1 | 0 | 0 | +---+---+---+---+---+---+ 1 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 2 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 3 | 1 | 0 | 0 | 0 | 0 | 1 | +---+---+---+---+---+---+ 4 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 5 | 0 | 0 | 0 | 1 | 0 | 0 | +---+---+---+---+---+---+ And suppose we now throw a 4 and a 6 again: 0 1 2 3 4 5 +---+---+---+---+---+---+ 0 | 0 | 0 | 0 | 1 | 0 | 0 | +---+---+---+---+---+---+ 1 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 2 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 3 | 1 | 0 | 0 | 0 | 0 | 2 | +---+---+---+---+---+---+ 4 | 0 | 0 | 0 | 0 | 0 | 0 | +---+---+---+---+---+---+ 5 | 0 | 0 | 0 | 2 | 0 | 0 | +---+---+---+---+---+---+ We have only thrown 3 times, and if we were to print out the stats it would look something like this: $ ./a.out Number of times 1 + 1 were thrown => 0 Number of times 1 + 2 were thrown => 0 Number of times 1 + 3 were thrown => 0 Number of times 1 + 4 were thrown => 1 Number of times 1 + 5 were thrown => 0 Number of times 1 + 6 were thrown => 0 Number of times 2 + 1 were thrown => 0 Number of times 2 + 2 were thrown => 0 Number of times 2 + 3 were thrown => 0 Number of times 2 + 4 were thrown => 0 Number of times 2 + 5 were thrown => 0 Number of times 2 + 6 were thrown => 0 Number of times 3 + 1 were thrown => 0 Number of times 3 + 2 were thrown => 0 Number of times 3 + 3 were thrown => 0 Number of times 3 + 4 were thrown => 0 Number of times 3 + 5 were thrown => 2 Number of times 3 + 6 were thrown => 0 Number of times 4 + 1 were thrown => 1 Number of times 4 + 2 were thrown => 0 Number of times 4 + 3 were thrown => 0 Number of times 4 + 4 were thrown => 0 Number of times 4 + 5 were thrown => 0 Number of times 4 + 6 were thrown => 0 Number of times 5 + 1 were thrown => 0 Number of times 5 + 2 were thrown => 0 Number of times 5 + 3 were thrown => 2 Number of times 5 + 4 were thrown => 0 Number of times 5 + 5 were thrown => 0 Number of times 5 + 6 were thrown => 0 Number of times 6 + 1 were thrown => 0 Number of times 6 + 2 were thrown => 0 Number of times 6 + 3 were thrown => 0 Number of times 6 + 4 were thrown => 0 Number of times 6 + 5 were thrown => 0 Number of times 6 + 6 were thrown => 0 Write your program to keep stats for 3000 throws. An Example output might be: $ ./a.out Number of times 1 + 1 were thrown => 156 Number of times 1 + 2 were thrown => 188 Number of times 1 + 3 were thrown => 182 Number of times 1 + 4 were thrown => 162 Number of times 1 + 5 were thrown => 158 Number of times 1 + 6 were thrown => 151 Number of times 2 + 1 were thrown => 188 Number of times 2 + 2 were thrown => 160 Number of times 2 + 3 were thrown => 145 Number of times 2 + 4 were thrown => 168 Number of times 2 + 5 were thrown => 174 Number of times 2 + 6 were thrown => 175 Number of times 3 + 1 were thrown => 182 Number of times 3 + 2 were thrown => 145 Number of times 3 + 3 were thrown => 140 Number of times 3 + 4 were thrown => 171 Number of times 3 + 5 were thrown => 191 Number of times 3 + 6 were thrown => 167 Number of times 4 + 1 were thrown => 162 Number of times 4 + 2 were thrown => 168 Number of times 4 + 3 were thrown => 171 Number of times 4 + 4 were thrown => 148 Number of times 4 + 5 were thrown => 163 Number of times 4 + 6 were thrown => 166 Number of times 5 + 1 were thrown => 158 Number of times 5 + 2 were thrown => 174 Number of times 5 + 3 were thrown => 191 Number of times 5 + 4 were thrown => 163 Number of times 5 + 5 were thrown => 178 Number of times 5 + 6 were thrown => 166 Number of times 6 + 1 were thrown => 151 Number of times 6 + 2 were thrown => 175 Number of times 6 + 3 were thrown => 167 Number of times 6 + 4 were thrown => 166 Number of times 6 + 5 were thrown => 166 Number of times 6 + 6 were thrown => 164