Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Assignment: BMI app Write an Android app to calculate the Body Mass Index of the user. Body Mass Index (BMI) is a measure of

image text in transcribed

image text in transcribed

image text in transcribed

Lab Assignment: BMI app Write an Android app to calculate the Body Mass Index of the user. Body Mass Index (BMI) is a measure of body fat that is useful in screening for health issues. Generally speaking: A BMI of 18.5 or less is considered underweight 2 A BMI between 18.5 to 24.9 is considered healthy. A BMI between 25-29.9 is considered overweight 2 A BMI of 30 or over is considered obese. need to ask the use to input those values). You square the height, then divide the weight in pounds by the squared-height BMI is defined in terms of meters and kilograms, so to convert from pounds and inches to meters and kilograms, simply multiply by 703. Your app should ask the user to enter his/her height in inches and his/her weight in pounds. Then it should display the BMI of the user as well asa message indicating whether the user is underweight, healthy, overweight, or obese. Retrieving the content of an EditText ?xml version-"1.0" encoding-"utf-8"?> LinearLayout xmins:android-"http://schemas.android.com/apk/res/android" android:layout_ width-"fill_parent" android:layout height-"fill_parent" android orientation-"vertical"> Welcome to the Fortune Teller App. Enter your name and click the button to get your fortune. Good luck //retrieve text from EditText EditText text- (EditText) findViewByld(R.id.editText); String userinput text.getText0.toString0; /LinearLayout Lab Assignment: BMI app Sample run BMI Calculator BMI Calculator John Smt John Smith BM and Health Report Your BMI is 22.46272 You are considered healthy 135

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago