Write a program that simulates rolling one die using the following steps: 1. Prompt the user for the number of sides on the die. 2. "Roll" the die three times by generating a random number between 1 and the number of sides (inclusive). 3. Keep track of the running sum of the rolls for the die and output the sum and average for the three rolls at the end. 4. You can set up one integer variable named roll and reuse it with each roll of the die. You will also need a variable named total, initialized to zero.
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program that simulates rolling one die using the following steps: 1. Prompt the user for the number of sides on the die. 2. "Roll" ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Write a program that simulates rolling one die using the following steps: 1. Prompt the user for the number of sides on the die. 2. "Roll" the die three times by generating a random number between 1 and the number of sides (inclusive). 3.