Page 1 of 1

HARD: Given the information below for Tom and Jerry. Tom - height: 9in mass: 8 g Jerry - height: 10in

Posted: Sun Jul 10, 2022 11:27 am
by answerhappygod
HARD: Given the information below for Tom and Jerry.
Tom - height: 9in mass: 8 g
Jerry - height: 10in mass: 45 g
Compare the BMI (Body Mass Index) of Tom & Jerry using the formula below:
BMI = mass / height ^2 = mass / (height * height)
Store Tom & Jerry’s mass and height as variables. Calculate both their BMI’s. Create a Boolean variable containing information about whether Tom has a higher BMI than Jerry. Print a string to the console with the variable from step 3 ( e.g. Is Tom’s BMI higher than Jerry’s? false).
Completed index.html file(do not change):
Hard Given The Information Below For Tom And Jerry Tom Height 9in Mass 8 G Jerry Height 10in 1
Hard Given The Information Below For Tom And Jerry Tom Height 9in Mass 8 G Jerry Height 10in 1 (51.68 KiB) Viewed 75 times
Week4excercises.js file:
Hard Given The Information Below For Tom And Jerry Tom Height 9in Mass 8 G Jerry Height 10in 2
Hard Given The Information Below For Tom And Jerry Tom Height 9in Mass 8 G Jerry Height 10in 2 (20.09 KiB) Viewed 75 times
EXPLORER ✓ WEEK4JS <> index.html JS week4excercises ⠀ <> index.html X <> index.html > ... 1 <!DOCTYPE html> 2 3 4 5 6 7 8 9 <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Week4</title> </head> <body> 10 11 <H1>Open the console to see the magic</H1> 12 <script src=" ./week4excercises"></script> 13 </body> 14 </html>
EXPLORER ✓ WEEK4JS <> index.html JS week4excercises JS week4excercises JS week4excercises DETALHGA999 10 11 12 13 14 15 16 17 18 19 20 21 22 23