header

Lab 10

Write a program that displays the empirical probabilities associated with an experiment in which a specified number of coins is flipped.

Output Specifications

The application will display the probability distribution for the number of heads.

Input Specifications

The user will enter the number of coins and the number of trials in the experiment.

Process Specifications

The application will flip the specified number of coins the specified number of times and keep track of the frequency distribution of the number of heads (which can range from zero up to the number of coins). When the experiment is over, the application will calculate the corresponding probabilities.

Sample Run

The image below illustrates a sample run.

Sample Run

File Submission

Name your program file "Lab10.cpp" and submit it as an email attachment.