Create the following graphics

Dec 2nd, 2015
RockCafe
Category:
Computer Science
Price: $10 USD

Question description

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 generatePreview the documentView in a new window 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 numberPreview the documentView in a new window 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.

diceexample.png


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Purdue University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

3 Reviews


Summary
Quality
Communication
On Time
Value
BlueOcean
Nov 11th, 2016
" Awesome! Exactly what I wanted. "
ashleyisgod
Oct 19th, 2016
" Top quality work from this guy! I'll be back! "
Molly_Moon
Sep 27th, 2016
" AMAZING as always! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors