Page 53 - CloudGPT_C7_Flipbook
P. 53

Coding Task            01                    Experiential Learning



                                                          Are you a teen?
                  Description: In this task, you will learn to draw a flowchart to check if you are a child,
                  teenager or an adult. You will learn to write algorithm, pseudocode and then draw a

                  flowchart of the situation.

                  Algorithm:

                  Step 1:  Input age

                  Step 2:  If age <13
                  Step 3:  Print child


                  Step 4:  else if age > = 13 and age <=19
                  Step 5:  Print teenager

                  Step 6:  else if age > 19

                  Step 7:  Print adult

                  Pseudocode:

                  Program Start

                  IF (age<13)

                      THEN

                      Display Child

                  ELSE

                      IF (age>=13 and <=19)

                      THEN

                      Display Teenager

                  ELSE

                      IF (age>19)

                      THEN

                      Display Adult

                  Program End




                                                                                     Control with Conditionals   51
   48   49   50   51   52   53   54   55   56   57   58