Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop the following using Android Studio: Write an Android Application that simulates the Lorentz Formula The main activity will just display a front page (A

Develop the following using Android Studio:

image text in transcribed

Write an Android Application that simulates the Lorentz Formula The main activity will just display a front page (A fancy one with logo/picture of your choice) with the button Test your weight o Declares two String variables in the string.xml file as follows: o over: initialized to pay attention to your health, ...you may need to balance your weight by loosing " o below: initialized to "pay attention to your health, ...you may need to balance your weight by gaining" o Prompts you to input: 0 Your First Name o Your Last Name O Your Height (in centimeter) o Your Weight (in kilos) o Gender (from the radio button) o Calculates the ideal weight of your body by using the Lorentz formula (male or female) o Displays the ideal weight with the statement similar to the following: "Hello first Name last Name, over/below xxx kg" depending on if the weight is over or below the ideal one previously calculated Example Lorentz Formula Weight Female = [height (cm) - 100] - [height(cm) - 150] 2.5 Last Name: Khan, First Name: John Height = 180, Weight = 80 kg, Gender = M Ideal Weight = (180-100)-(180-150)/4 = 72.5 kg Weight Male = [height (cm) - 100] - [height(cm) - 150] Output Hello John Khan, you need to lose 7.5 kg

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions