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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!