Question: Create a program that does the following: -in a separate function prompt the user to enter the number of sides for a die no more

 Create a program that does the following: -in a separate function

Create a program that does the following: -in a separate function prompt the user to enter the number of sides for a die no more than 20 sides. -In a separate function prompt a user to enter the number of times they would like to roll the die. - Create an array to use as counters for the die in the main function. -in a separate function roll the die. -In a separate function print out the results. -all function calls must be made from the main function. -no global variables. // sample output Enter the number of sides for your die:12 Enter the number of rolls:25 The number of times you rolled a: 1=5 2=2 3=1 4=2 5=2 6=1 7=3 8=2 9=1 10=1 Create a program that does the following: -in a separate function prompt the user to enter the number of sides for a die no more than 20 sides. -In a separate function prompt a user to enter the number of times they would like to roll the die. - Create an array to use as counters for the die in the main function. -in a separate function roll the die. -In a separate function print out the results. -all function calls must be made from the main function. -no global variables. // sample output Enter the number of sides for your die:12 Enter the number of rolls:25 The number of times you rolled a: 1=5 2=2 3=1 4=2 5=2 6=1 7=3 8=2 9=1 10=1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!