Menu

Dice Roll Simulator Write Class Named Dice Dice Class Following Member Variable Integer Na Q43861542

Dice Roll Simulator Write a class named Dice. The Dice classshould have the following member variable: • A integer namedsideUpValue. The sideUpValue member variable will hold the value(1,2,3,4,5,6) facing up when the dice is rolled. The Dice classshould have the following member functions: • A void memberfunction named Roll that simulates the Rolling of the dice. Whenthe Roll member function is called, it randomly generates the valueof the dice that faces up (1,2,3,4,5,6) • A member function namedgetSideUp that returns the value of the sideUp member variable.Write a program that demonstrates the Dice class. The programshould create an instance of the class and display the side that isinitially facing up. Then, use a loop to throw the dice 100 times.After which display a Column chart showing how much each numbershowed up. Something like this: 1 *****************2********************************** 3*****************4***************************************************5***************** 6**********************************

Expert Answer


Answer to Dice Roll Simulator Write a class named Dice. The Dice class should have the following member variable: • A integer na…

OR