Answered step by step
Verified Expert Solution
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
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