Write down a program to request a person''s age

Assignment Help Computer Engineering
Reference no: EM1332885

In order for exercise to be beneficial to the cardiovascular system, the heart rate (number of heart beats per minute) must exceed a value called the training heart rate, THR. A person's THR can be calculated from his age and resting heart rate (pulse when first awakening) as follows:

a. Calculate the maximum heart rate as 220 - age.

b. Subtract the resting heart rate from the maximum heart rate.

c. Multiply the result in step (b) by 60%, and then add the resting heart rate.

Write a program to request a person's age and resting heart rate as input and display their THR. (Test the program with an age of 20 and a resting heart rate of 70, and then determine YOUR training heart rate.)

Reference no: EM1332885

Questions Cloud

Social influences affects decision-making by us consumers : Select one of the social influences that affects consumer decision-making. Provide a definition for it and discuss how this affects decision-making by U.S. consumers.
Subordinates for performance evaluation : Analysis the merits and weaknesses of this policy for a large business organization. Cite all sources.
Calculate cost of equity using dcf-capm : Compute the Medical Associates' cost of equity estimate by using the DCF method. Calculate the cost of equity estimate using CAPM.
Discusing the informed consent in research : Discuss and define 'informed consent' in criminal justice, as well as whether or not the Department of Health and Human Services guidelines of 1981.
Write down a program to request a person''s age : In order for exercise to be beneficial to cardiovascular system, heart rate (number of heart beats per minute) must exceed a value called the training heart rate.
Prepare a memo to upper management : Evaluative measures as directives for HR will be used to measure the divisional effectiveness over the next five years.
Share valuation and capm modelling : What is the value of a share of Caledonia prior to the acquisition? What is the new value of a share of stock in Caledonia, assuming the acquisition is completed?
Show the current selections made by the user : construct a program that demonstrates the enhanced options for the MessageBox class. Use three GroupBox controls with RadioButton controls contained within each.
Explain e-communication : Explain E-communication and available that will allow e-merchants to provide new levels of service and customer satisfaction to consumers

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the importance of usability

What website design changes should be made to accommodate older online surfers.

  Weighted directed graph

Provided an example of the weighted directed graph G = (V, E) with weight function ω: E→R and source vertex s such that the G satisfies following property: For each edge (u,v)∈E,

  How is this achieved in your code

In order for the instance below to work, could you have a variable named "field"? How would the variables on either side of the MOVE statement need to be defined as.

  Define computer hardware - financial planning

In this recommendation, selecting only two kinds of computers (desktop, laptop, notebook or handheld computers) and other hardware components.

  Write down a c function named liquid()

make a C function named liquid() that is to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups. The passed integer represents total number of cups, and the function is to determine the number of gallons, q..

  Explain the averaging algorithm

Explain the averaging algorithm

  Why would a firm choose one of these approaches

I am having difficulty with the following questions: Differentiate between a two-tier client/server system and a three-tier client/server system. Why would a firm select one of these approaches over the other when implementing a client/server syst..

  How do i build a sample cmm model

What is the needs for relevant quality standards and quality management.

  Explain how to compile and run a standalone java application

Write a simple Java program that incorporates as a minimum three best practices for making your code readable and understandable by yourself and others.

  What are an ethical dilemmas associated

What are the ethical dilemmas associated with using facial recognition software? Is this kind of software any different from a store asking to see your drivers license when you use your credit card.

  Make an application named numbers

make an application named Numbers. The Numbers class should have non-static public methods named sum and difference, each taking a pair of int variables as arguments.

  Explain the concept of scalability to the team

The project leader wants you to explain the concept of scalability to team. How would you do that? Several managers on the team have heard of TCO but are not quite sure what it is. How would you explain it to them.

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