Answer to Question #241538 in Python for H A

Question #241538

1. Heartbeat: Write a program that prompts for a person’s age in years and heartbeats rate per minute. The program computes and outputs the number of heartbeats since the person was born. You may assume that there are 365 days in a year.


output/input:

  • Enter the age in years and heart rate: 23 56
  • The number of heartbeats since the person was born is 676972800
1
Expert's answer
2021-09-24T06:14:19-0400
Age=int(input("Enter the Age: "))
Heartbeat=int(input("Enter the heart beat rate: "))
H=24*60*365*Age*Heartbeat
print("The number of heartbeats since the person was born is ",H)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS