I need to create a webpage that calculates heart rate based on these instructions.

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
100%

I need to create a webpage that calculates heart rate based on these instructions.

Two examples of the web site running:
Your Name, Target Heart Rate
Your Age 35
Calculate Target Heart Rate
This page predicts your Maximum Heart Rate (MHR) based on the formula:
220- your age
Predicted Maximum Heart Rate: 185
Target Heart Rate: 92 to 157 Beats Per Minute
Your Name, Target Heart Rate
Your Age 65
Calculate Target Heart Rate
This page predicts your Maximum Heart Rate (MHR) based on the formula:
220 - your age
Predicted Maximum Heart Rate: 155
Target Heart Rate: 77 to 131 Beats Per Minute
Transcribed Image Text:Two examples of the web site running: Your Name, Target Heart Rate Your Age 35 Calculate Target Heart Rate This page predicts your Maximum Heart Rate (MHR) based on the formula: 220- your age Predicted Maximum Heart Rate: 185 Target Heart Rate: 92 to 157 Beats Per Minute Your Name, Target Heart Rate Your Age 65 Calculate Target Heart Rate This page predicts your Maximum Heart Rate (MHR) based on the formula: 220 - your age Predicted Maximum Heart Rate: 155 Target Heart Rate: 77 to 131 Beats Per Minute
Instructions
You may use your textbooks and notes to solve this problem.
The American Heart Association recommends that when you exercise, you stay within 50 to 85
percent of your maximum heart rate (MHR).
MHR can vary significantly even among people of the same age and sex, but one common
formula for predicting your maximum heart rate is to subtract your age from 220.
For this practical exercise, you will create a Web page that you can use to calculate your target
heart rate range, based on the predicted maximum formula above. The requirements for your web
site are as follows:
• Include a comment in the code that includes the assignment name, your name and the date
• The web site title is Midterm PE
• Include a header that is Your Name, Target Heart Rate
• Include a text box to allow the user to enter their age
• Include a label for the text box that is "Your Age"
• Include a button to allow the user to calculate their Target Heart Rate range
• Include an element to display the Predicted Maximum Heart Rate
• Include an element (or elements) to display the calculated Target Heart Rate (THR) range
• The THR element(s) should display (or include a label) stating "Target Heart Rate: "
• Include a JavaScript function (or functions) to do the following:
• Calculate the user's predicted maximum heart rate
• Store the user's predicted MHR in a variable (predictedMHR)
• Calculate the user's minimum target heart rate (minTHR) using the formula minTHR =
predicted MHR * 0.5
• Calculate the user's maximum target heart rate (maxTHR) using the formula maxTHR =
predictedMHR* 0.85
• Display the calculated minimum and maximum THR values using the format "minTHR to
maxTHR Beats Per Minute" NOTE: include only the integer portion of the min and max
target values by using the Math.floor() function.
For example, for someone 35 years old, the target heart rate text should display "92 to 157 beats
per minute."
Transcribed Image Text:Instructions You may use your textbooks and notes to solve this problem. The American Heart Association recommends that when you exercise, you stay within 50 to 85 percent of your maximum heart rate (MHR). MHR can vary significantly even among people of the same age and sex, but one common formula for predicting your maximum heart rate is to subtract your age from 220. For this practical exercise, you will create a Web page that you can use to calculate your target heart rate range, based on the predicted maximum formula above. The requirements for your web site are as follows: • Include a comment in the code that includes the assignment name, your name and the date • The web site title is Midterm PE • Include a header that is Your Name, Target Heart Rate • Include a text box to allow the user to enter their age • Include a label for the text box that is "Your Age" • Include a button to allow the user to calculate their Target Heart Rate range • Include an element to display the Predicted Maximum Heart Rate • Include an element (or elements) to display the calculated Target Heart Rate (THR) range • The THR element(s) should display (or include a label) stating "Target Heart Rate: " • Include a JavaScript function (or functions) to do the following: • Calculate the user's predicted maximum heart rate • Store the user's predicted MHR in a variable (predictedMHR) • Calculate the user's minimum target heart rate (minTHR) using the formula minTHR = predicted MHR * 0.5 • Calculate the user's maximum target heart rate (maxTHR) using the formula maxTHR = predictedMHR* 0.85 • Display the calculated minimum and maximum THR values using the format "minTHR to maxTHR Beats Per Minute" NOTE: include only the integer portion of the min and max target values by using the Math.floor() function. For example, for someone 35 years old, the target heart rate text should display "92 to 157 beats per minute."
Expert Solution
Step 1 Introduction

Html is the hypertext markup language is used to create the website or web page. By creating the web pages we can use the form, elements of the html etc. we can also create using the scripting language.

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Hyperlinks
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.
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