Answered step by step
Verified Expert Solution
Link Copied!

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 ****2= mass ?(height**height)
(mass in kg 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 1: Marks weights 78kg and is 1.69m tall. John weights 92kg and is 1.95m tall.
Data 2: Marks weights 95kg and is 1.88m tall. John weights 85kg and is 1.76m tall.
image text in transcribed

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

Students also viewed these Databases questions

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago