Quote (RandyMillholland @ Jan 10 2016 10:33am)
How to write a program that assists in the study of coin flips.the program should ask the user to flip a coin and enter the result.The number of coin flips should be entered at the start.When complete , the program should display the number of heads and tails.program output should look similar to:
How many flips to analyze? 5
Flip coin and enter result (H or T ) #1 : H
Flip coin and enter result (H or T ) #2 : H
Flip coin and enter result (H or T ) #3 : T
Flip coin and enter result (H or T ) #4 : H
Flip coin and enter result (H or T ) #5 : T
variable for heads
variable for tails
variable for number of fliips
increment what side the coin landed when the user tells you