Question: Stage 1 Create an array to store the player's dice rolled, i . e . the five dice values. For example: int p l a
Stage
Create an array to store the player's dice rolled, ie the five dice values. For example:
int ice ;
Add code to simulate the rolling of five dice, ie the damage the player will do That is you should generate five random numbers, each in the range of through inclusive and assign each number to an array element. Use the rand function ierand to simulate the roll of a die. Hint: Use a loop in order to assign each random number die roll to an array element.
Display the player's dice ie the randomly generated dice roll to the screen, eg:Sample output this will look different given we are generating random values here:Player rolled:
tableDie Die Die Die 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
