Write an algorithm that will compute statistics for 8 coin tosses. the user will enter either…

Write an algorithm that will compute statistics for 8 coin
tosses. the user will enter either an h for heads or 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.