Create the following graphics dice program.
The user will be “throwing” 5 dice.
Then they will “throw” each of the 5 dice by clicking on their respective outlined areas. When clicked/thrown the dice will appear in the outlined area. You will need to randomly generate
a number between 1-6 for each click/throw. After each click/throw the new dice total will appear in the bottom left of the window.
After all the dice have been clicked/thrown you will display a message below the dice total remarking on how lucky they are.
Have an Exit button the user can click to exit the program.
Notes:
You can assume that the dice are clicked/thrown in order of 1 to 5.
If the user clicks outside of the dice outlines nothing should happen, no dice display, no error message.
You need to use a function that is called with every dice click/throw:
- It does not allow a second click/throw on a dice.
- It calls another function that generates the random dice number

between 1-6. - It draws that dice in the appropriate outlined area. You can do this by calling another function or functions.
- It adds up the dice total.


0 comments