Can you keep count while exercising?

lesson-header

When athletes train, they normally do reps, a set, or a routine.

Can you think of an example of each of these exercise terms?

Build Leo, your personal trainer.

student-02

Leo, your personal trainer, will help you count your sit-ups.

If you have time, build your own design.

Let's try this code first.

SPIKE Life Hacks Repeat-5-times Step03-Program - en-us
student-03

You should see that Leo does some sit-ups by himself.

Count Leo's reps!

student-04

Now, use a variable to add a counting element to this program.

Insert the “set sit-ups” block at the beginning of the programming stack to define the value you’ll start counting from.

Add a “change sit-ups by 1” block when Leo has completed one sit-up.

Add the “reporter” block to the light block to visualize the content of your variable.

It could look something like this:

SPIKE Life Hacks Repeat-5-times Step04-Hint - en-us

Add a second variable to count calorie burn.

student-05

The calories will increase by 3 for each group of 5 sit-ups. 

Display calorie burn on the Programming Canvas.

You’ll need to create another variable that will count calories burned and display it with the Display block.

Now add some personality!

student-06

Use more bricks or change your program to give your trainer more personality.

Record a video of a workout.

Think about how you did. 

Kyle-Kate-Reflect.png

What did you do well? Is there anything you could’ve done better?

... 6, 7, 8, 9, 10… keep going, you’ve got this!