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

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 22.06.2019 21:20, seimdakota
Which of the following is an example of negative reinforcement? a. marty knocks over his mother's prize fern so she gives him a time out. b. gwen mows the lawn and her dad takes her out for ice cream. c. tara takes an aspirin, and her headache begins to go away. d. peter comes in late from his lunch and is fired from his job.
Answers: 1
image
Advanced Placement (AP), 22.06.2019 23:50, xandreaii
Ayellow line means traffic on either side may cross the center line to pass another vehicle. a. single solid b. double solid c. single broken d. double broken
Answers: 2
image
Advanced Placement (AP), 23.06.2019 12:50, gonzalesnik
Want free points + free brainliest? answer this drivers ed question correctly and i got you! a higher grade number for oil means it is a. heavier b. more viscous c. less viscous d. more important
Answers: 2
image
Advanced Placement (AP), 23.06.2019 13:20, kat9490
Want brainliest + free points? answer this question correctly and i got you. in rural areas, be aware of sudden hazards, particularly near a. wide turns or working farms b. tight turns or working farms c. long stretches of open road d. abandoned farms
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 in other subjects:

Konu
Computers and Technology, 06.09.2019 08:10
Konu
Health, 06.09.2019 08:10