3
https://movecoach.candidatemetrics.com/questions/275/ submissions/new?assignment_id=3106&prev=2700 Description We want to create running schedules for athletes training to run a 10k race. We have a tried-and-true training formula, based off on each athlete’s VO2 max pace. VO2 max pace is that athlete’s pace for a 12-minute run. From a person’s VO2 max pace, we can calculate three other paces: I - 98% of VO2 max pace (interval pace) T - 86% of VO2 max pace (threshold pace) E - 70% of VO2 max pace (easy pace) With these paces, we can compute a person’s training schedule. Here are the rules for a training schedule: 1. The week immediately preceding the race is a preparation week. 2. The week prior to the preparation week is an easy week. 3. The week prior to any easy week is a hard week. 4. The week prior to any hard week is an easy week. Preparation Week 1 day off

question.docx

Embed Size (px)

Citation preview

https://movecoach.candidatemetrics.com/questions/275/submissions/new?assignment_id=3106&prev=2700

Description

We want to create running schedules for athletes training to run a 10k race.

We have a tried-and-true training formula, based off on each athletes VO2 max pace. VO2 max pace is that athletes pace for a 12-minute run.

From a persons VO2 max pace, we can calculate three other paces:

I - 98% of VO2 max pace (interval pace) T - 86% of VO2 max pace (threshold pace) E - 70% of VO2 max pace (easy pace)With these paces, we can compute a persons training schedule. Here are the rules for a training schedule:

1. The week immediately preceding the race is a preparation week.2. The week prior to the preparation week is an easy week.3. The week prior to any easy week is a hard week.4. The week prior to any hard week is an easy week.Preparation Week

1 day off 1 day with 10 minutes run at I and 20 minutes run at E Remaining days each consist of 30 minutes run at E

Easy Week

1 day off 1 day with 20 minutes run at T and 20 minutes run at E Remaining days with 50 minutes run at E

Hard Week

1 day off 1 day with 45 minutes run at T 1 day with 10 minutes run at I and 30 minutes run at E Remaining days with 50 minutes run at EInput

Your program should read two positive integers from input. The first integer is the number of weeks until the race. The second integer is the number of miles that the person can run in 12 minutes. Use this to calculate the persons VO2 max pace.

Output

Your program should calculate the athletes training schedule based on the input, and then write one integer to output. That integer should be the number of miles that the athlete runs based on this schedule, rounded to the nearest integer.

Note:For the purposes of this exercise, there are 1609 meters in a mile.Sample InputExpected Output

10 2333

16 1270

22 31123