Python Programming
Thursday, January 1, 2015
Coin Flipping Counter
Here is a simple program where the computer flips a coin 100 times and outputs the number of Heads and Tails.
Here is the basic outline:
Explain the program
Set initial parameters
# of heads
# of tails
# of flips
Loop that flips coin 100 times and keeps tracks of Head or Tails
Diplay total number of Heads and Tails
User presses enter to exit program
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment