Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an HTML document called assignment1.html that implements a calorie intake calculator based on the Harris-Benedict equation used by nutritionists and health professionals to determine

Create an HTML document called assignment1.html that implements a calorie intake calculator based on the Harris-Benedict equation used by nutritionists and health professionals to determine the daily energy needs based on age, sex, height, weight and level of physical activity.

Follow these guidelines to implement your assignment:

  1. Research the formula on wiki:

https://en.wikipedia.org/wiki/Harris%E2%80%93Benedict_equation

  1. Build a form to accept all the required input from the visitors.
  2. Create a JavaScript file called assignment1.js and write the code for a function that calculates the calorie intake based on the user input.
  3. Invoke the function every time the visitor presses a Calculate button on the form.
  4. Display the results (BMR and daily calories intake) on the page.
  5. (10% of the grade) Use HTML5 controls that limit/validate the user input.
  6. (10% of the grade) Use good web design practices to enhance visually your html page.
  7. (10% of the grade) Extend the calculator to accept metric measurements.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

What are local standards and conventions?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago