Answered step by step
Verified Expert Solution
Question
1 Approved Answer
At the top of the js file ONLY write your U number. This assignment will be peer graded anonymously. Mark and John are trying to
At the top of the js file ONLY write your U number. This assignment will be peer graded anonymously. Mark and John are trying to compare their BMI Body Mass Index which is calculated using the formula: BMI mass height mass mass in and height in meter Your tasks: Store Mark's and John's mass and height in variables Calculate both their BMIs using the formula you can even implement both versions Create a Boolean variable 'markHigherBMI' containing information about whether Mark has a higher BMI than John. Test data: Make calculations with BOTH sets of data: Data : Marks weights and is tall. John weights and is tall. Data : Marks weights and is tall. John weights and is tall.
At the top of the js file ONLY write your U number. This assignment will be peer graded anonymously.
Mark and John are trying to compare their BMI Body Mass Index which is calculated using the formula:
BMI mass height mass
mass in and height in meter
Your tasks:
Store Mark's and John's mass and height in variables
Calculate both their BMIs using the formula you can even implement both versions
Create a Boolean variable 'markHigherBMI' containing information about whether Mark has a higher BMI than John.
Test data:
Make calculations with BOTH sets of data:
Data : Marks weights and is tall. John weights and is tall.
Data : Marks weights and is tall. John weights and is tall.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started