Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a windows program that neatly displays 5 randomly generated dice in a wind

ID: 3634120 • Letter: W

Question

Write a windows program that neatly displays 5 randomly generated dice in a window. Each die will be drawn as a square and will randomly have from 1 to 6 spots on it arrange as is customary for dice. Somewhere on the window will be the following text “The sum of all the dice is X!” where X will be the actual sum of the 5 dice. When the user presses page-up the dice will grow in size. (They will remain square and their centers will not move. ) When the user presses page-down the dice will shrink in size. (They will remain square and their centers will not move. ) When the space bar is pressed each die will be rerolled. In other words it will
display a new random value between 1 and 6. The value of X in item will be recalculated and displayed.

Explanation / Answer

include #include #include using namespace std; int rollDice(); int main(int argc, char* argv) { int numRolls; int arrRolls[6]; int dieRoll; srand((unsigned)time(0)); cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote