Imagine you are a runner and have entered different running events. You enter events of the following possible distances: 1500 meters, 5000 meters (5k). 10000 meters (10k), and Half Marathon (13.1 miles) Of course, you can't run at your maximum possible effort for each of these races, as your muscles will fail to perform at maximum effort for such distances Your estimated maximum heart rate is approximately 220- your age (in beats per minute). So a 20 year old may expect to have a maximum heart rate of 200 bpm. If you want to run the 1500m at 95% of max heart rate, 5k at 90%, 10k at 85%, and half marathon at 75%, you can determine from a person's age and goal race what their target heart rate should be. Your program should ask the user for the following age 2) race distance It will then: 3) calculate the target heart rate you should shoot for during the race and 4) show it to the user with a statement like. "For a X year old runner, targeting a race, you should shoot for a heart rate of Y during the race." Maximum points will only be available if the inputs are validated for reality (i e. reasonable ages) and the race distances should be presented for the user to select (i e. show them options and they should indicate 1 for 1500m, 2 for 5k, etc.) If you make an attempt that looks like it tries to satisfy the 4 principal requirements you will score 10 points. Then 2 additional points for each requirement performed properly. A final 2 points will be awarded for the proper validation and race distance presentation

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
Help me on below python program.
Profes x
8 Impc x
tra/courses/_206423_1/cl/outline
Spinbc x
Intervi X
The Fix
5 Care x
10 skill X
Core requirements
1. Your program runs and prints to the terminal with the output from the tempate updated with information that is your own.
Test
Verify the program runs and you see the output you expect from the print() function provided in the template.
Add-on
If you have time, can you have it output additional lines of text about yourself as an introduction?
Your program should ask the user for the following:
1) age
2) race distance
10 Exa x
+
E
0
race day prep.py
Imagine you are a runner and have entered different running events.
You enter events of the following possible distances: 1500 meters, 5000 meters (5k), 10000 meters (10k), and Half Marathon (13.1 miles)
Of course, you can't run at your maximum possible effort for each of these races, as your muscles will fail to perform at maximum effort for such distances
Your estimated maximum heart rate is approximately 220 - your age (in beats per minute). So a 20 year old may expect to have a maximum heart rate of
200 bpm.
If you want to run the 1500m at 95% of max heart rate, 5k at 90%, 10k at 85%, and half marathon at 75%, you can determine from a person's age and goal
race what their target heart rate should be.
It will then:
3) calculate the target heart rate you should shoot for during the race and
4) show it to the user with a statement like "For a X year old runner, targeting a <race distance> race, you should shoot for a heart rate of Y during the race.
Maximum points will only be available if the inputs are validated for reality (ie reasonable ages) and the race distances should be presented for the user to
select (i e. show them options and they should indicate 1 for 1500m, 2 for 5k, etc.)
If you make an attempt that looks like it tries to satisfy the 4 principal requirements you will score 10 points. Then 2 additional points for each requirement
performed properly. A final 2 points will be awarded for the proper validation and race distance presentation
00:28
#
Transcribed Image Text:Profes x 8 Impc x tra/courses/_206423_1/cl/outline Spinbc x Intervi X The Fix 5 Care x 10 skill X Core requirements 1. Your program runs and prints to the terminal with the output from the tempate updated with information that is your own. Test Verify the program runs and you see the output you expect from the print() function provided in the template. Add-on If you have time, can you have it output additional lines of text about yourself as an introduction? Your program should ask the user for the following: 1) age 2) race distance 10 Exa x + E 0 race day prep.py Imagine you are a runner and have entered different running events. You enter events of the following possible distances: 1500 meters, 5000 meters (5k), 10000 meters (10k), and Half Marathon (13.1 miles) Of course, you can't run at your maximum possible effort for each of these races, as your muscles will fail to perform at maximum effort for such distances Your estimated maximum heart rate is approximately 220 - your age (in beats per minute). So a 20 year old may expect to have a maximum heart rate of 200 bpm. If you want to run the 1500m at 95% of max heart rate, 5k at 90%, 10k at 85%, and half marathon at 75%, you can determine from a person's age and goal race what their target heart rate should be. It will then: 3) calculate the target heart rate you should shoot for during the race and 4) show it to the user with a statement like "For a X year old runner, targeting a <race distance> race, you should shoot for a heart rate of Y during the race. Maximum points will only be available if the inputs are validated for reality (ie reasonable ages) and the race distances should be presented for the user to select (i e. show them options and they should indicate 1 for 1500m, 2 for 5k, etc.) If you make an attempt that looks like it tries to satisfy the 4 principal requirements you will score 10 points. Then 2 additional points for each requirement performed properly. A final 2 points will be awarded for the proper validation and race distance presentation 00:28 #
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Probability Problems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education