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
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
Related questions
Question
100%
Help me on below python program.
Expert Solution
Step 1
Algorithm:
- Input the runner's age
- Validate the age
- Prompt the running distance menu
- Input the running distance choice
- Validate the runner's distance choice
- Calculate the targeted distance using the runner's distance choice
- Calculate the target heart rate as follows.
- Targeted heart rate = 220 - Age
- Display the result
- End
Step by step
Solved in 4 steps with 3 images
Knowledge Booster
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
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education