Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Step: 3

blur-text-image

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

=+ At what rate does capital per person grow?

Answered: 1 week ago