Question: Write a program in C++ that simulate a dice roll. The program should use the rand() function and include . How much i roll the
Write a program in C++ that simulate a dice roll. The program should use the rand() function and include
How much i roll the dice and the percentage of each number fell.
Example :
How many dice rolls would you like to perform? = 4 / This need to be between 1 and 100 /
so i got this numbers randomly
4, 4, 2, 1
then i need
num1, num2, num3, num4, num5 and num6 times percentage as i show below
1 = 25% - 2 = 25% - 3 = 0% - 4 = 50% - 5 = 0% - 6 = 0%
Write this program in C++ please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
