Answered step by step
Verified Expert Solution
Question
1 Approved Answer
rite a program which uses functions to perform the following tasks. Ask the user how many dice rolls to perform. ( do as a function
rite a program which uses functions to perform the following tasks.
Ask the user how many dice rolls to perform. do as a function
Ask the user how many dice will be rolled at one time or do as a function
Ask the user what the smallest and largest values are on each die. do as a function
Create a function to roll a single die. Do this as a function where the smallest and largest are passed in as
parameters and the dice roll is returned.
Use a loop or nested loops in the main program to do the dice rolls and show the results on the screen.
The following illustrates what your screen dialogue might look like:
How many dice rolls should occur?
How many dice will be rolled at time?
What is the minimum value on a dice side?
What is the maximum value on a dice side?
Here are the dice rolls:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started