From: Redduan Haris on
can anyone please help me with this q??

Write the program that simulates the rolling of two dice. The program should use randperm to roll the first dice, and should use randperm again to roll the second dice. The sum of the two values should then be calculated. Your program should roll the two dice 100 times. Use a single-subscripted array to tally the numbers of times each possible sum appears. Print the result in a tabular format. This program analyzes the result and shows how many times the sum of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 occurs
From: TideMan on
On Apr 5, 6:43 pm, "Redduan Haris" <monk_re...(a)yahoo.com> wrote:
> can anyone please help me with this q??
>
> Write the program that simulates the rolling of two dice. The program should use randperm  to roll the first dice, and should use randperm again to roll the second dice. The sum of the two values should then be calculated.. Your program should roll the two dice 100 times. Use a single-subscripted array to tally the numbers of times each possible sum appears. Print the result in a tabular format. This program analyzes the result and shows how many times the sum of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 occurs

Redduan Haris is another homework cheat.
Hopefully, Google will pick this up so that in future if anyone enters
"homework cheat" into Google, they'll get Redduan Haris near the top
of the list. And if they enter Redduan Haris, they'll get homework
cheat.

But, quite frankly, your assignment is so simple, I don't know why you
need to cheat.
Your instructor has kindly told you exactly how to solve the problem.
So why cheat? Just do what he told you.