Exercise
Defining Logic Exercise

In this exercise, we will focus on developing some logic flows using an If, a Switch, and an implementation of an ad-hoc loop. These tools will be used to help us on the following scenarios:

  • By clicking on a button with a number, the application will display a message indicating if the number is positive or negative.

  • By clicking on a button with a number, the application will display a message indicating the number’s order of magnitude (e.g: 10K, 100K, …)

  • By clicking on a button with a number, the application will display a message with the value of the number’s factorial.

When this is completed, the application will have three Actions that will support all of these scenarios.


You can download a ZIP file of the Exercise Materials by clicking the button below (login required).
It contains all the resources needed for this Lesson, including the Exercise Guide PDF.

Need help with this course? Ask in our Forums. | Have an idea to improve your learning experience? Share in Ideas.
Exceptions