Side up Value Member Variable & Value of The Dice Programming Lab Report

Write a class named Dice. The Dice class should have 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 the following member functions:
•  A void member function named Roll that simulates the Rolling of the dice. When the Roll member function is called, it randomly generates the value of the dice that faces up (1,2,3,4,5,6)
•  A member function named getSideUp that returns the value of the sideUp member variable.

Write a program that demonstrates the Dice class. The program should create an instance of the class and display the side that is initially facing up. Then, use a loop to throw the dice 100  times.

After which display a Column chart showing how much each number showed up. Something like this:

1 *****************

2 **********************************

3 *****************

4 ***************************************************

5 *****************

6 **********************************


INNOVATION is a big deal here. 


15% off for this assignment.

Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!

Why US?

100% Confidentiality

Information about customers is confidential and never disclosed to third parties.

Timely Delivery

No missed deadlines – 97% of assignments are completed in time.

Original Writing

We complete all papers from scratch. You can get a plagiarism report.

Money Back

If you are convinced that our writer has not followed your requirements, feel free to ask for a refund.

× How can I help you?