ASSIGNMENT_4 Note: Read Chapter’s 6 and 7 with examples and complete the assignm
ID: 3681747 • Letter: A
Question
ASSIGNMENT_4
Note: Read Chapter’s 6 and 7 with examples and complete the assignment.
1.(Dice Rolling) Write a program that simulates the rolling of two dice. The program should use rand twice to roll the first die and second die, respectively. The sum of the two values should then be calculated. [Note: Because each die can show an integer value from 1 to 6, then the sum of the two values will vary from 2 to 12, with 7 being the most frequent sum and 2 and 12 the least frequent sums.] Your program should roll the two dice 36,000 times. Use a one-dimensional array to tally the numbers of times each possible sum appears. Print the results in a tabular format.
Below is a sample output:
Below is a sample output:
Maximum Points: 20
Due Date: 11:59 PM, March 29th, 2016
Submission: Submit your source code to Blackboard.
need the source code in the c files.