Program to calculate target heart rate

Assignment Help Basic Computer Science
Reference no: EM131716398

Write a program to calculate target heart rate during fitness training. This program has two functions: main and heart_rate_calculator.  Please do the following:

(a) In the main function, ask the user to enter age and resting heart rate.

(b) In the main function, call the heart_rate_calculator function.  Pass the age and resting heart rate as arguments.

(c) In the heart_rate_calculator function, write code to calculate target heart rate during fitness training with the following formula:

Target hart rate = (220 - age - resting heart rate) * 0.4 + resting heart rate

Display target heart rate.

The following is an example.

Enter age: 40

Enter resting heart rate: 70

Your target heart rate is 114.0

Reference no: EM131716398

Questions Cloud

Determining the binary numbers : Just as have binary numbers (base 2) which can contain only 0s and 1s we can also have base 3 numbers. These numbers can only contain 0s 1s and 2s.
Define embryos that are free from genetic defects : the use of pre-implantation genetic diagnosis to select only embryos that are free from genetic defects
Define what aspects elements ideas of k. horney''s : What aspects/elements/ideas of K. Horney's and E. Erikson's proposals can be applied to optimal child development
Prepare a flexible budget for may : Puget Sound Divers is a company that provides diving services such as underwater ship, Prepare a flexible budget for May
Program to calculate target heart rate : Write a program to calculate target heart rate during fitness training. This program has two functions: main and heart_rate_calculator. Please do the following:
Attended a session on health savings accounts : Susan Berry just returned from a national conference on compensation and benefits where she attended a session on Health Savings Accounts (HAS).
Identify arp structure and its fields in a pox controller : MN622 - Identify the ARP structure and its fields in a POX controller and Configure the POX controller that replies ARP requests
Define what is the goal of the group : Social Norms are expected standards of behavior and belief established between members
Each gymnast in a competition receives scores : Each gymnast in a competition receives scores from 5 judges. Write a Python program to do the following.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Entrepreneur combines four kinds of resources

An entrepreneur combines four kinds of resources into a business. What would be the effect on the business if anyone were left out?

  Choose an information system for an individual project

Choose an information system for an individual project.

  Description of the role of it strategy in acquiring

A description of the role of IT strategy in acquiring business driven information systems -

  What is the average number of people waiting in line

What is the average number of people waiting in line?

  Determine the number of registers or stack locations

Illustrate your technique on the following expression ((A+B)+(C+D))+((E+F)+(G+H))

  Service processor of the storage array

A storage array dials a support center automatically whenever an error is detected. The vendor's representative at the support center can log on to the service processor of the storage array through the Internet to perform diagnostics and repair.

  Disaster recovery or business continuity

1. Find an online article regarding Disaster Recovery OR Business Continuity. 2. Summarize the article.

  Find the probability that it will not be defective

If an items is chosen at random from the day's production, find the probability that it will not be defective.

  Implement the class with accessors and mutators

Implement the class with accessors and mutators for the movie name and MPAA rating. Write a method addRating that takes an integer as an input parameter.

  Names for a base class

What is a base class? And what are the other names for a base class? Should common functionality be put in the base class? Why or why not?

  Design a rectangular reinforced concrete beam

Design a rectangular reinforced concrete beam for a simple span of 32 ft. Uniform service loads are 1.5 kips/ft dead load and 2.0 kips/ft live load. The width of the beam is limited to 18 in. Use f′ c = 3000 psi and fy = 60,000 psi. Sketch your d..

  The internet uses a network technology

The internet uses a network technology called TCP/IP. The name comes from the protocol stack that includes TCP protocol in the transport layer and IP protocol in the network layer. Sometimes UDP protocol is used in the Transport layer ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd