Write a program that will compute statistics for eight coin tosses. The user will enter either an h for heads or a t for tails for the eight tosses. The program will then display the total number and percentages of heads and tails. Use the increment operator to count each h and t that is entered. For example, a possible sample dialogue between the program and the user might be
For each coin toss enter either h for heads or t for tails.First toss: hSecond toss: tThird toss: tFourth toss: hFifth toss: tSixth toss: hSeventh toss: tEighth toss: tNumber of heads: 3Number of tails: 5Percent heads: 37.5Percent tails: 62.5
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.