Presentation is loading. Please wait.

Presentation is loading. Please wait.

Global Challenge Fitness Friend Lesson 3.

Similar presentations


Presentation on theme: "Global Challenge Fitness Friend Lesson 3."— Presentation transcript:

1 Global Challenge Fitness Friend Lesson 3

2 We need to: design a Fitness Friend:
a wearable device that will give an audio and visual reminder every 25 minutes to do some exercise.

3 Input Start button pressed
Fitness friend algorithms When START button pressed: REPEAT Count 25 minutes ( seconds) OUTPUT audio beep for 1 second OUTPUT visual display ‘Move!’ When STOP button pressed, STOP. Input Start button pressed Count 25 minutes Output Audio beep 1 second Output Visual display ‘Move!’ Is stop button pressed? No Yes Stop

4 Learning objectives: To follow an algorithm to write a program to create a ‘Fitness Friend’ To use paired programming and understand why it is helpful To test and debug code

5 Paired programming 2 programmers working together to code
One types the code (driver) One watched the driver, checks the code, makes suggestions (navigator) work collaboratively, talking through problems Why might this be helpful? more accurate code written in shorter time can collaboratively work through problems

6 Sample code for basic Fitness Friend
Actual For testing

7 Sample code for Fitness Friend with stop & start buttons
Actual For testing

8 Explaining your code Talk through the code to explain what each block does. Why have you used those particular blocks? What alternative ways could you have coded the ‘Fitness Friend’? Why did you choose this way? What problems did you encounter and how did you overcome them?

9 Learning objectives: To follow an algorithm to write a program to create a ‘Fitness Friend’ To use paired programming and understand why it is helpful To test and debug code


Download ppt "Global Challenge Fitness Friend Lesson 3."

Similar presentations


Ads by Google