1 / 17

Global Challenge Fitness Friend Lesson 2

Global Challenge Fitness Friend Lesson 2. Why is regular exercise important to prevent heart disease? keeps your heart healthy & increases fitness (can reduce coronary heart disease by 35%) makes heart and blood circulatory system more efficient lowers your cholesterol level

jblanco
Download Presentation

Global Challenge Fitness Friend Lesson 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Global Challenge Fitness Friend Lesson 2

  2. Why is regular exercise important to prevent heart disease? • keeps your heart healthy & increases fitness (can reduce coronary heart disease by 35%) • makes heart and blood circulatory system more efficient • lowers your cholesterol level • keeps blood pressure at healthy level • can help to manage weight (another risk factor for heart disease)

  3. 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.

  4. Pomodoro Technique • Developed by Italian Francesco Cirillo • Means tomato (traditionally uses a tomato timer!) • Uses a timer to break work into intervals to help concentration (usually 25 minutes) • Also ideal to remind you to move regularly!

  5. Decomposition • breaking down a complex problem into smaller, component parts. Algorithm • a sequence of instructions or rules to solve a problem • written for a person to follow to write code

  6. Learning objectives: • To decompose a large problem into smaller, component parts • To write a detailed, accurate algorithm using pseudocode and flowcharts • To test and debug algorithms and understand why this is important • To know what the ‘pomodoro technique’ is and that it can be helpful for health and concentration.

  7. 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.

  8. Fitness friend basic algorithm • Start • Count 25 minutes • Make audio sound • Display visual message • Repeat until stop

  9. Pseudocode • A simple way of describing a set of instructions (an algorithm) • No specific syntax (programming language)

  10. Fitness friend pseudocode algorithm 1 • START • REPEAT • Count 25 minutes (1500000 seconds) • OUTPUT audio beep for 1 second • OUTPUT visual display ‘Move!’ • STOP What is the problem with this algorithm? We do not tell it how many times to repeat, or when to stop .

  11. Fitness friend pseudocode algorithm 2 • When START button pressed • REPEAT until STOP button pressed • Count 25 minutes (1500000 seconds) • OUTPUT audio beep for 1 second • OUTPUT visual display ‘Move!’ • When STOP button pressed, STOP

  12. Input device • hardware that sends data to a computer system Output device • hardware that communicates the results of processed data from a computer system to the outside world

  13. Iteration • The repetition of a sequence Loops • A form of iteration • repeat until a certain condition is met

  14. Flowchart symbols Input / Output Start / Stop Decision Process Direction of flow

  15. Start Fitness friend flowchart • When START button pressed: • REPEAT • Count 25 minutes (1500000 seconds) • OUTPUT audio beep for 1 second • OUTPUT visual display ‘Move!’ • When STOP button pressed, STOP. InputStart button pressed Count 25 minutes Output Audio beep 1 second Output Visual display ‘Move!’ Is stop button pressed? No Yes 停止

  16. Wrap up questions: • How have you used decomposition today? • Why have we spent time designing algorithms today before starting to code? • How have you used iteration and loops? • How will pseudocode and/or flowcharts help you code? • Why has it been helpful to test and revise the algorithms today? • How can the pomodoro technique be helpful?

  17. Learning objectives: • To decompose a large problem into smaller, component parts • To write a detailed, accurate algorithm using pseudocode and flowcharts • To test and debug algorithms and understand why this is important • To know what the ‘pomodoro technique’ is and that it can be helpful for health and concentration.

More Related