SlideServe
Menu
Préférences
© SlideServe · v2026

Fitness Friend Algorithm Design for Health and Concentration Learning

jblanco avatar
17 diapositives · 243 Views · Oct 31, 2019

Learn decomposition techniques, algorithm design using pseudocode and flowcharts, and the benefits of the Pomodoro Technique for health. Design a Fitness Friend wearable device. Understand the importance of testing and revising algorithms.

Fitness Friend Algorithm Design for Health and Concentration Learning - slide 1
1 / 17

Télécharger la présentation

Fitness Friend Algorithm Design for Health and Concentration Learning
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  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.