I have been racking my brain for awhile on this stupid problem. I don't even know where to start since the douche bag instructor was sick and said 'you can learn arrays all by yourselves' I was like WTF no I cant!
Anyways here is the question;
Write a sprogram that simulates the rolling of two dice. The program should use rand to roll the first die, and shoul use rand again to roll the second die. The sum of the two values should then be calculated. [Note: Since each die can show an integer value from 1 to 6, then the sum of the two value will vary from 2 to 12 with 7 being the most frequent sum and 2 and 12 beiing the least frequent sums] Figure 6.23 shows the 36 possible combinations of the two dice. You program should roll the two dice 36,000 times. Use a single-subscripted array to tally the numbers of times each possible sum appears. Print the results in a tabular format. Also, determine if the totals are reasonable. I.e. there are six ways to roll a 7, so approximately one sixth of all the rolls will be 7.
thanks in advance! LAL