Program Needs C Output Needs Like Picture Dice Roll Simulator Write Class Named Dice Dice Q43862007
The program needs to be in c++ the output needs to be like thepicture.
Dice Roll Simulator Write a class named Dice. The Dice class shouldhave the following member variable: • A integer named sideUpValue.The sideUpValue member variable will hold the value (1,2,3,4,5,6)facing up when the dice is rolled. The Dice class should have thefollowing member functions: • A void member function named Rollthat simulates the Rolling of the dice. When the Roll memberfunction is called, it randomly generates the value of the dicethat faces up (1,2,3,4,5,6) • A member function named getSideUpthat returns the value of the sideUp member variable. Write aprogram that demonstrates the Dice class. The program should createan instance of the class and display the side that is initiallyfacing up. Then, use a loop to throw the dice 100 times. Afterwhich display a Column chart showing how much each number showedup. Something like this: 1 *****************2********************************** 3*****************4***************************************************5***************** 6**********************************%3D%3D%3D %3D%3D %3D%3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D %3D%3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D %3D %3D%3D %3D %3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D Show transcribed image text %3D%3D%3D %3D%3D %3D%3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D %3D%3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D %3D %3D%3D %3D %3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D %3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D
Expert Answer
Answer to The program needs to be in c++ the output needs to be like the picture. Dice Roll Simulator Write a class named Dice. Th…
OR