Write a c program that uses a function to toss a thick coin


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
Basic Computer Science: Write a c program that uses a function to toss a thick coin
Reference No:- TGS01384909

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)