0

# In this challenge we are going to write code to simulate the Beep Test training program using Button A as input to trigger the application.

## Big Ideas:

• Computational Thinking (logical reasoning, patterning, debugging, analyzing)
• Number Sense (Intervals, Data Ranges)
• Physical Education (Running, Sprinting, Interval Training)

The multi-stage fitness test, also known as the beep test is a series of stages that have different tasks sometimes used by sports coaches and trainers to estimate an athlete‘s VO2max (maximum oxygen uptake).

The test involves running continuously between two points that are 20 m apart from side to side. The runs are synchronized with a pre-recorded audio tapeCD or laptop software, which plays beeps at set intervals. As the test proceeds, the interval between each successive beep decreases, forcing the athletes to increase their speed over the course of the test until it is impossible to keep in sync with the recording (or, on extremely rare occasions, until the athlete completes the test). Many people who test people using the multi-stage fitness test allow one level to beep before the person makes the line, but if the person being tested does not make the next interval, the most recent level they completed is their final score.

The recording is typically structured into 21 ‘levels’, each lasting around 62 s. Usually, the interval of beeps is calculated as requiring a speed at the start of 8.5 km/h (see format table), increasing by 0.5 km/h with each level thereafter. The progression from one level to the next is signaled by 3 quick beeps. The highest level attained before failing to keep up is recorded as the score for that test.

https://en.wikipedia.org/wiki/Multi-stage_fitness_test#Format

https://playlifeoutloud.wordpress.com/tag/beep-test/

## To begin, we will use the data from the table listed on the Wik page.

For each Level, we will construct a Repeat loop that will play a tone and wait the corresponding number of seconds. You will see from the table above that our first Repeat loop should pause 8470 ms as shown below.

Our second Repeat loop (Level 2) will loop eight times and pause for 8000 ms.

Repeat the process for all 21 intervals and tie up those laces!

# For more lessons, activities and ideas, grab a copy of my book, Code Breaker, on Amazon here!

(Visited 2,727 times, 1 visits today)