Python Programming
Showing posts with label
counter
.
Show all posts
Showing posts with label
counter
.
Show all posts
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
Older Posts
Home
Subscribe to:
Posts (Atom)