Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 105 - 2629_Devagiri_C-5
P. 105

    9.   Procedures Blocks: These blocks let you create reusable sets of instructions.
                         They help you avoid repeating code and keep your app organised.

                         Example:

                                    to  procedure2  Collects a sequence of blocks together into a group.
                                  result

                                     to  procedure  Same as a procedure do block, but this procedure returns
                                  do
                                                   a result when called.

                            CREATING AN APP

                     In this activity, you will create an app that shows a multiplication table when a
                     number is entered. The app will display the results of multiplying the number by 1 to 10.

                     To make the Multiplication Table App, follow the given steps:

                     Step    1    Click on the New Project button and name it Multiplication_Table.

                     Step    2    Click on the Screen1 option and set AlignHorizontal to Center: 3 and

                                  AlignVertical to Top 1.

                     Step    3    Drag a Label from the Palette to the Viewer, then set its properties: Text
                                  to Multiplication Table, FontSize to 30, check FontBold and align it to
                                  Center.

                                                                                    Creating Apps with MIT App Inventor  103

| 100 101 102 103 104 105 106 107 108 109 110 |