Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the BMI example from class activity (BMI question), and the code you already wrote, and improve it: 1. Print a nice output to the

Use the BMI example from class activity (BMI question), and the code you already wrote, and improve it: 1. Print a nice output to the console, saying who has the higher BMI. The message can be either "Lucas' BMI is higher than John's!" or "John's BMI is higher than Lucas'!" 2. Use a template literal to include the BMI values in the outputs. Example: "John's BMI (28.3) is higher than Lucas BMI (23.9), that is True/False!" HINT: Use an if/else statement; the variables you create in class are: johnBMI, lucasBMI, lucasHigherBMI.

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_2

Step: 3

blur-text-image_3

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions