9) Order the following algorithm (sequence of steps, in pseudo-code) in the correct order: The problem: HearRate: the heart rate of human can be calculate based on the age of the person as (220-age). The normal heart rate is between 50% to 85% of (220 - age). If the heart rate (measured by the person) is within the range of below range then print/output "Normal" otherwise output "at risk". For example, if a person age 70 years old had heart rate 83 bpm; then 220-age=220-70= 150 so, the normal heart rate for this person is 0.50 to 0.85 of 150 which will be normal between 0.50*150 to 0.85*150 {normal between: 75 to 128} since this person's measured heart rate is 83 and 83 is within the normal range then the output is "normal". Write the correct order of all the steps, the complete set of steps of the algorithm are given in the following box (write the complete algorithm with the correct order of steps): range-from= (220-ag) * 0.50 Step1: Step4: Step6: Step3: If hr is between range-from to range-to Then output "Normal" Else output "At risk" Step5: Step2: Step8: Step7: input the age as variable called ag range-to (220-ag) * 0.85 =============end============= print prompt message "enter your age" Output: a message indicating whether the heart rate is normal or at risk. Input: age and measure heart rate. print prompt message "Enter your measure heart rate" Procedure:...brief explanation of the procedure......... Step 1: Step2: Step8: End input heart rate from user into variable hr Procedure: calculate heart rate based on age and check if the input heart rate is within the range or not Write down these steps (from the box above) in the correct order in the following format: Input: .......... Output:... =============================================================================

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.2: While Loops
Problem 8E: (Numerical analysis) a. The following is an approximate conversion formula for converting Fahrenheit...
icon
Related questions
Question
9) Order the following algorithm (sequence of steps, in pseudo-code) in the correct order:
The problem: HearRate: the heart rate of human can be calculate based on the age of the person as (220-age). The normal
heart rate is between 50% to 85% of (220-age). If the heart rate (measured by the person) is within the range of below
range then print/output "Normal" otherwise output "at risk". For example, if a person age 70 years old had heart rate 83
bpm; then 220 - age=220-70= 150 so, the normal heart rate for this person is 0.50 to 0.85 of 150 which will be normal
between 0.50*150 to 0.85*150 {normal between: 75 to 128} since this person's measured heart rate is 83 and 83 is within
the normal range then the output is "normal". Write the correct order of all the steps, the complete set of steps of the
algorithm are given in the following box (write the complete algorithm with the correct order of steps):
range-from= (220-ag) * 0.50
Step1:
Step4: Step6:
Step3:
Step5:
If hr is between range-from to range-to Then output "Normal"
Else output "At risk"
Step8:
Step2:
Step7:
=============end=====
input the age as variable called ag
range-to (220-ag) * 0.85
Output: a message indicating whether the heart rate is normal or at risk.
Step8:...
print prompt message "enter your age"
Procedure:......brief explanation of the procedure.........
Step 1:
Step2:
Input: age and measure heart rate.
print prompt message "Enter your measure heart rate"
End
Write down these steps (from the box above) in the correct order in the following format:
Input: ..........
Output:
input heart rate from user into variable hr
Procedure: calculate heart rate based on age and check if the input heart rate is within the range or not
=================
Transcribed Image Text:9) Order the following algorithm (sequence of steps, in pseudo-code) in the correct order: The problem: HearRate: the heart rate of human can be calculate based on the age of the person as (220-age). The normal heart rate is between 50% to 85% of (220-age). If the heart rate (measured by the person) is within the range of below range then print/output "Normal" otherwise output "at risk". For example, if a person age 70 years old had heart rate 83 bpm; then 220 - age=220-70= 150 so, the normal heart rate for this person is 0.50 to 0.85 of 150 which will be normal between 0.50*150 to 0.85*150 {normal between: 75 to 128} since this person's measured heart rate is 83 and 83 is within the normal range then the output is "normal". Write the correct order of all the steps, the complete set of steps of the algorithm are given in the following box (write the complete algorithm with the correct order of steps): range-from= (220-ag) * 0.50 Step1: Step4: Step6: Step3: Step5: If hr is between range-from to range-to Then output "Normal" Else output "At risk" Step8: Step2: Step7: =============end===== input the age as variable called ag range-to (220-ag) * 0.85 Output: a message indicating whether the heart rate is normal or at risk. Step8:... print prompt message "enter your age" Procedure:......brief explanation of the procedure......... Step 1: Step2: Input: age and measure heart rate. print prompt message "Enter your measure heart rate" End Write down these steps (from the box above) in the correct order in the following format: Input: .......... Output: input heart rate from user into variable hr Procedure: calculate heart rate based on age and check if the input heart rate is within the range or not =================
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning