Question: C++ program to simulate a simple dice rolling game. Simulations such as this with objects (i.e., dice contained in a DiceCup) interacting with other objects
C++ program to simulate a simple dice rolling game. Simulations such as this with objects (i.e., dice contained in a DiceCup) interacting with other objects (i.e., the dice roller simulated by your main program function) as well as global functions are quite common in Object-Oriented Programming. You will implement two integer containers to hold, 1) the results of numerous rolls of dice and, 2) the frequency of each possible number. You will access these containers using loops. One or both of these containers will be passed to global functions for manipulation. The results of the dice rolls will be displayed on the screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
