need some help with my C++ homework. here is the assignment:

PROGRAM #1 - DICE ROLLING SIMULATIONThis program should simulate the roll of a single die (dice) (1-6) using the C++ random number functions. First ask the user how many times they would like to have the die (dice) rolled. Next, have the program simulate the number of rolls of the die (dice) the user requested and keep track of which number the die (dice) landed on for each roll. At the end of the program print out a report showing how many times the die (dice) roll landed on each number and what percentage of the total times the die (dice) roll landed on each number.Do NOT use functions or arrays on this - use what I showed you during lecture, you should always listen during lecture to get the right techniques, if you forgot what I said during lecture look at the slides.

Input Validation: Do not allow the user to enter a number less than 1 as the number of times they would like to roll the dice. Your output should look similar to what is below (exact solution on Hypergrade "View Required Output" link):

DICE ROLL STATISTICS

# Rolled # Times % Times

------ ------- --------

1 4 16.00%

2 3 12.00%

3 5 20.00%

4 7 28.00%

5 4 16.00%

6 2 8.00%

HINT:Put your sRand() functionoutsideof your loop (remember what happened in class when we put it inside the loop!). Watch what happens if you put it inside loop and see if you can figure out why that happens.Make sure your program does not use the same random sequence each time you run it.

Not asking you guys to do my homework, just have a few questions.

1) Kinda confused as to what the variables are supposed to represent. So far I've got

I'm guessing to keep counters on time, you start with time = 1 and do time += 1 until it hits time <= times?Code:`#include <cstdlib>#include <iostream>`

#include <ctime>

using namespace std;

int main()

{

int times;

int roll;

roll = rand() % 6 + 1;

cout << "How many times would you like to roll the dice?" << endl;

cin >> times;

for (roll =1; int <= times;

cout <<"

Also I have no idea how to keep track of the rolls and how many times it has rolled that specific number. Any help is much appreciated!