Question: Q# 1 : ( 5 points ) Write a Python program that asks the user to input their age and their resting heart rate (

Q#1: (5 points) Write a Python program that asks the user to input their age and their resting heart rate (in beats per minute). The program should calculate the user's maximum heart rate using the formula: 220- age. Then, it should determine the user's target heart rate range for moderate-intensity exercise, which is 50% to 70% of the maximum heart rate. Display the user's maximum heart rate and target heart rate range. If the user's resting heart rate is within their target range, display "Your resting heart rate is within the target range for moderate exercise." Otherwise, display "Your resting heart rate is outside the target range for moderate exercise."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!