Question: QUESTION 1 (30 MINUTES) BMI Write a Java program that takes two double values which are the weight (in kilograms) and helght (in meters) from

QUESTION 1 (30 MINUTES) BMI Write a Java program that takes two double values which are the weight (in kilograms) and helght (in meters) from the user using console input. Hence your program can calculate the BMI (Body Mass Index). Your code shall have 3 non-static methods, one for calculation, one for checking the status and one for the output. These three methods are belongs to a superclass Beware that one of the methods are not implemented in superclass. Your code will ask the input from main() method. Given the formula to calculate the BMI BMI = Weight (kg) Weight Status [Height (m) x Height (m)] Underweight Your output shall display the information shown below using window 18.5 to 24.5 250 to 29.0 Overweight Weight = 50.5 kg 30.0 and above bese Height = 1.65 m Your BMI is = 18.5 Weight Status = Normal (15 marks) Below 186 Normal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
