Question: Problem 2 . [ 3 5 points ] Roll Three Dice. Write a C + + function that simulates the outcome of rolling three dice
Problem points Roll Three Dice. Write a C function that simulates the outcome of rolling three dice simultaneously. Each die is fair with an equal probability of getting and independent. For example, if the first die gets the second die gets and the third die gets the function returns Write a main function that calls the function and simulates dice rolls, and the function calculates and displays probability for the sum of three dice equals dots,
Report your results in the writeup
Submit your cpp file as "yourLastName hw probcpp
Hint: We ask you to use vector to store the total number of rolls that gives the results of dots, Declaring separate variables is a bad idea.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
