Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started