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.
You are responsible for demonstrating all the functionality of
your program based on the rubric for you to get credit.
please do it in C++
Write a program using vectors that simulates the rolling of a single die a hundred times. The program should store 100
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am