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:... =============================================================================

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education