Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
Mark and John are trying to compare their BMI (Body Mass Index), which is calculated using the formula: BMI=mass/height2=mass/(heightheight) (mass in kg and height in meter). Your tasks: 1. Store Mark's and John's mass and height in variables 2. Calculate both their BMIs using the formula (you can even implement both versions) 3. 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

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

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago