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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 74 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 74 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply