Question: 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:
- Research the formula on wiki:
https://en.wikipedia.org/wiki/Harris%E2%80%93Benedict_equation
- Build a form to accept all the required input from the visitors.
- Create a JavaScript file called assignment1.js and write the code for a function that calculates the calorie intake based on the user input.
- Invoke the function every time the visitor presses a Calculate button on the form.
- Display the results (BMR and daily calories intake) on the page.
- Use HTML5 controls that limit/validate the user input.
- Use good web design practices to enhance visually your html page.
- Extend the calculator to accept metric measurements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
