Starting from:
$35

$29

Lab 1 Solution

Part I

Design and Implement and iPhone app that

    a) Read the weight of a person in pounds and height of a person in inches

    b) Calculate the BMI using following equation

BMI = (weight in pounds/(height in inches)* (height in inches))*703

    c) Then, display the following messages to the user based on the BMI value

You are underweight if BMI < 18    - Blue Color

You are normal if BMI is greater than or equal to 18 and less than 25 - Green Color You are pre-obese if BMI is between 25 and 30 – purple Color

You are obese if BMI is greater than 30 - red color Output of the App should look like follows
































Principle of Mobile Computing, Fall 2020 : Lab 1

Part II

For this part also we calculate BMI slightly differently as follows. Rather than user typing the height and weight in text fields, we use a slider to represent the height and weight. As slider values changes, it calculates BMI and display the appropriate massage.

Output of the App should look like follows








































Submission Instructions

Submit online to the blackboard using the link given under Lab1










Principle of Mobile Computing, Fall 2020 : Lab 1

More products