Week 6 Mini Project #3

Watch the Video 6-3 Stopwatch Game

Read through project guidelines and rubric.

Project 3: Stopwatch Game

1) Part 1 Create a function format(t) that converts 115.3 seconds into 1:55.3 You'll have to use some math, such as // and % to properly get this conversion. Important: Do NOT use floating point numbers to keep track of your tenths of a second. Print out this value on your canvas.

Template: http://www.codeskulptor.org/#user3-8apDVdYkXy-2.py

2) Part 2 Add a timer that updates the stopwatch by 0.1 intervals, every tenth of a second. Add Start and Stop buttons to control your Stopwatch. Add a Reset button to reset your stopwatch (and stop it if it is still running).

Template: http://www.codeskulptor.org/#user3-MWnd1eu548yY9Ab-2.py

3) Bonus: Create a game that lets you count how many times you can stop the stopwatch at exactly whole seconds (0:04.0 and not 0:04.1). If the Stopwatch is already stopped, hitting Stop again should not change your score.

Template: http://www.codeskulptor.org/#user3-mfTBhqzkjxAZ8Je-0.py