Question: C++ language Write a program using vectors that simulates the rolling of a single die a hundred times. The program should store 100 rolls of
C++ language
Write a program using vectors that simulates the rolling of a single die a hundred times. The program should store 100 rolls of the die. After the program rolls the die, the program then goes through the 100 elements in the vector and tallies up the number of 1 rolls, the number of 2 rolls, the number of 3 rolls, the number of 4 rolls, the number of 5 rolls, and the number of 6 rolls. The program then displays the number of the respective rolls to the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
