Question: Write function displayRandomDice to do the following a . Return type void b . Empty parameter list c . Declare the following variables, data type
Write function displayRandomDice to do the following
a Return type void
b Empty parameter list
c Declare the following variables, data type integer
a roll
b die
c die
d die
e die
f die
d Write a for loop to iterate three times using variable roll as the loop control variable
a Set variable die equal to function call rollDie
b Set variable die equal to function call rollDie
c Set variable die equal to function call rollDie
d Set variable die equal to function call rollDie
e Set variable die equal to function call rollDie
f Write a series of printf statements to output the random values of each die
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
