Write an iOS app to calculate the BMI of the user.

Write an iOS app to calculate the BMI of the user. 

• The app should allow the user to type their name in a text field.

 • The app should allow the user to use two sliders to enter their height and weight.

 • The app should have a button. 

Once the user taps the button, the BMI should be displayed in a message box. The message box should contain the user’s name and their BMI. 

The equation to compute BMI is: BMI = (Weight in kg) / (Height in meter) 2 The sample app is shown in the pictures below. In this sample app, cm and kg are used. 

You may use meter, foot/inch, pound as you like. 

Tags: No tags