Question: Write a program that simulates rolling a 1 6 - sided die. Use a for loop to generate 1 0 random numbers from the 1
Write a program that simulates rolling a sided die. Use a for loop to generate random numbers from the sided die should be defined as a variable
Print those numbers.
Your program should calculate the sum and the average of those numbers using a sum accumulator.
In a sentence, display the sum and average.
Your code should work even if you use a different number of random numbers generated ie even if you change
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
