Question
Mark and John are trying to compare their BMI (Body Mass Index), which is calculated using the formula: BMI= mass / height ****2= mass /(
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.
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