The purpose of this problem is to simulate the tossing of two dice using an array of ints and the C++ random number generator rand(). When a pair of dice is tossed, the total number of spots showing on their faces are counted and this count is used as the index into an array consisting of 13 int elements. The random number generator will produce an int number from 0 to 12. A number which is either 0 or 1 is discarded. All other numbers are used as indexes into the array elements. The values of all array elements will be initialized to 0. Each indexed array element will be incremented by 1. The program will run until a total of 1,000 increments have been applied to array elements 2 through 12. Then, the program will display the counts in each of the array elements 2 through 12 and terminate.
Any help I can get would be greatly appreciated, I am kinda new at this and to get off on the right foot would be a lot of help, thanks!