Write down a program which simulates rolling one dice utilizing the following steps:
1) Prompt user for the number of sides on the dice.
2) “Roll” the die three times by creating the random number between 1 (inclusive) and the number of sides (inclusive).
3) Keep track of running sum of the rolls for the die and output sum and average for the three rolls at end.
4) You may set up one integer variable named roll, and reuse it with each roll of the die. You will also require a variable named total, initialized to zero.