Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1: [5 marks] Calculate body mass index (filename: CalculateBmi.java) X[Java] Design an algorithm (Add it to the external documentation file) and then write a

image text in transcribed
Problem 1: [5 marks] Calculate body mass index (filename: CalculateBmi.java) X[Java] Design an algorithm (Add it to the external documentation file) and then write a program that gets a person's weight (kg) and height (m) from the keyboard and then calculates and displays the person's BMI on the console (keep two digits after the decimal point). The formula for calculating BMI is: bmi = weight /height? A sample run is given below: Please enter your weight in kg: 74 Please enter your height in meters: 1.7 Your BMI is: 25.61

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

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

What is the principle of thermodynamics? Explain with examples

Answered: 1 week ago