subject

Write a program that prompts for the user’s age and calculates and displays the user’s maximum heart rateand the range of the user’s heart rate.1.Get the user’s age as an integer (int).2.Calculate the maximum rate: maxRate = 220 –age. Calculate the low range: low = maxRate * 0.5. Calculate the high range: high = maxRate * 0.85.3.Output the results as shown below (assumes the user is 15 years old)Yellow are variables:Max rate: 205Low range rate: 102.5High range rate: 174.25

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 13:30
When a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright
Answers: 1
question
Advanced Placement (AP), 24.06.2019 02:00
Why did the separate car act not violate the 14th amendment?
Answers: 1
question
Advanced Placement (AP), 24.06.2019 19:30
Weak stimulus will cause a weak action potential. the stronger the stimulus, the stronger the action potential. a. true b. false
Answers: 1
question
Advanced Placement (AP), 24.06.2019 20:30
During the decline of the harappan civilization, which group came to power in the indus valley
Answers: 1
You know the right answer?
Write a program that prompts for the user’s age and calculates and displays the user’s maximum heart...
Questions
question
Mathematics, 05.04.2021 05:20
question
History, 05.04.2021 05:20
question
Mathematics, 05.04.2021 05:20
question
Mathematics, 05.04.2021 05:20
question
Chemistry, 05.04.2021 05:20