Question: USE C++ Programming Language Write a program to simulate an experiment rolling two six-sided fair dice. Allow the user to enter the number of rolls

USE C++ Programming Language

Write a program to simulate an experiment rolling two six-sided fair dice.

Allow the user to enter the number of rolls of the dice to simulate.

Print out each dies result after each roll.

Tally up and determine what percentage of the time the sum of the dots on the two dice equal 6 in the simulation?

Hint: Use a function to generate random numbers in the program.

A sample run is shown below:

Input

Enter a positive integer seed value: 4403

Enter number of rolls of dice: 50

Output

Die 1 rolls: 2 Die 2 rolls: 5

Die 1 rolls: 6

Die 2 rolls: 1

Number of rolls: 50

Percent with sum of eight: 16.00

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!