Class: Lab 2-Solution

$40.00 $34.00

Description: Suppose you are developing an app that calculate the weight of a person in different planets. The starting view (earth view) takes the weight of the person on earth as shown in the following screen shot. Form earth, the person can move to the moon view using a segue. While moving to the moon,…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Description: Suppose you are developing an app that calculate the weight of a person in different planets. The starting view (earth view) takes the weight of the person on earth as shown in the following screen shot. Form earth, the person can move to the moon view using a segue. While moving to the moon, earth weight is also passed from the earth view to the moon view. The moon view calculates the weight on moon and display both earth weight, moon weight, and the message “I feel much lighter !”

From the moon view, the person can go to the Jupiter or go back to the Earth using unwind segue. Similar to the transit from earth to moon, moon to Jupiter transit passes the weight on earth and moon to Jupiter. The Jupiter view then calculates the weight on Jupiter and shows the weight on moon, weight on earth, weight on Jupiter and display the message “I feel heavier!”. When the person is going back to the Earth from the moon , the earth view should display the message “Coming from the moon”

From the Jupiter, the person can go back to the moon or to the earth using unwind segues. Then the person comes from the Jupiter to moon view, the moon view should show the message “coming from the Jupiter”. Likewise, when the person comes from the Jupiter to Earth, the earth view should show the message “Coming from the Jupiter”

Note: Moon’s Gravity is 1/6 th of the earth’s gravity and the Jupiter’s gravity is 2.4 times earth’s gravity

Requirements (UI Design): You are free to design your UI differently as long as the main functionality described in the lab is implemented. The image views the show the images of Moon, Earth, and Jupiter

Segue and unwind segue requirements: Forward links (such as from Earth to Moon) need to be implemented using segues and backward links (from Moon to Earth) must be implemented as unwind segues.

Submission: Submit a zip file containing your complete project

Class: Lab 2-Solution
$40.00 $34.00