The function stores the results in an array the function


Write a c++ program that uses a function to toss a thick coin 100 times. The probablility of heads is 0.4, the probability of tails is 0.4 and the probability of the coin landing on its edge is 0.2. The function stores the results in an array. The function counts the number of times a head appeared, a tails appeared and how many times the coin landed on its edge.

Solution Preview :

Prepared by a verified Expert
Business Management: The function stores the results in an array the function
Reference No:- TGS01382632

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)