Question: a) Write a C++ program to simulate the roll of 2 dice. The program accepts the number of trials N and prints out how many
a) Write a C++ program to simulate the roll of 2 dice. The program accepts the number of trials N and prints out how many times out of N the total of the 2 dice rolled is 7, 11 . It also prints the result of each individual try.
b)Write a C++ program to compute the probability of winning a lottery where there are n numbers on the game card and r numbers are picked.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
