How to construct my program?

Hi, I'm new to the realm of C++ and am currently taking an intro class for computer programming, however, I'm not the best at it. Recently, the newest of topics have been arrays and creating programs with arrays and random number generators. I have found that my professor moves very quickly and doesn't really teach in a way that "clicks" in my head. So I have been struggling with this topic especially. Recently, we were assigned to design a program that simulates the rolling of two 6 sided dice. The user inputs how many times they want to roll the dice. Then, after designing a random number generator that would simulate the roll itself, the program is then to add the sum of the dice and store the result in an array. Then, output the sums stored in the array on a results page. Then, the program is to allow the user to repeat the process all over again (in my mind, one big while loop). So far, I know that I have to initialize the counts, make a screen to ask for the input of how many times the user wants to roll the dice, start a random number generator, and create equations for determining each roll using something to the effect of Dice_Roll1 = rand() % the max dice value (6) + 1. Then the part I am completely confused on, creating a for loop which would allow the sum to be stored in the array and displayed on an output screen. Can someone please give me some advice on how to organize and create this program? Any help would be greatly appreciated. I'm not asking for someone to do it for me, but just to point me in a direction where I could do it myself (so it won't be cheating).
Topic archived. No new replies allowed.