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 06:00
How does act ii, scene 3, when romeo goes to friar laurence’s cell at dawn, contrast with the action of the night before, when romeo and juliet declare their love? what do dawn and daytime signify to romeo and juliet’s relationship, and how does this scene tie into the light/darkness visual motif of the play? in the space below, analyze the scene’s importance in these respects. use specific details from the text to support your analysis.
Answers: 3
question
Advanced Placement (AP), 24.06.2019 15:00
What best describes the portability characteristic of money?
Answers: 1
question
Advanced Placement (AP), 24.06.2019 15:00
Atotal of 980 students were asked what their favorite holiday was and 525 students said christmas what percent of students said christmas was their favorite holiday
Answers: 2
question
Advanced Placement (AP), 26.06.2019 08:30
Which side did jupiter chose in the trojan war
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
Geography, 24.02.2021 09:50
question
English, 24.02.2021 09:50
question
Mathematics, 24.02.2021 09:50
Questions on the website: 13722367