Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m writing code for a project and I\'ve run into a big problem. I am supposed

ID: 3621544 • Letter: I

Question

I'm writing code for a project and I've run into a big problem. I am supposed to roll 2 dice and record the occurrence of the pairs, such as how many times 1-1 or 3-6 appear. So far I've placed both sets of numbers (The numbers from die 1 and the numbers from die 2) into 2 arrays. I am supposed to place the number of occurrences into a 2d array. This is the part I'm stuck on. Please help me. Please note that the individual numbers to not go into the 2d array, just the occurrences of the pairs. I'm not looking for an outright answer, just a strong push in the right direction.

Explanation / Answer

If you want to implement it with 6d array i can do this easily.