Page 63 - TP_Prime_V2.2_Class7
P. 63

Look at these examples:
                        Example 1:                                         Example 2:

                        READ Subject                                       READ marks
                        IF Subject = "Maths" THEN                          IF marks > 50 THEN

                            PRINT "Take out Maths book & notebook"             PRINT "Pass"
                        ELSE                                               ELSE
 Prime (Ver. 2.2)-VII     READ Rain                                        Example 4:                                       ALGORITHMIC INTELLIGENCE
                                                                               PRINT "Fail"
                            PRINT "Check timetable"
                        Example 3:

                                                                           READ age
                                                                           IF age >= 18 THEN
                        IF Rain = True THEN
                            PRINT "Carry an umbrella"
                        ELSE                                                   PRINT “You are eligible to vote.”
                                                                           ELSE
                            PRINT "Do not carry an umbrella"                   PRINT “You are not eligible to vote.”

 60                                                                                                                       61


                                                                                                    21 st
                      Warm           Write an example of a condition from real life.              Century   #Critical Thinking
                                                                                                   Skills
                      Up!
                                                                  Start




                                                               IF
                                              True                                     False








                                                                  Stop






                                 Let's Revisit

                    An algorithm is a set of step-by-step instructions in a sequential manner to solve a

                   problem.

                    The raw data is collected, filtered, sorted, processed, analysed, stored, and then
                   presented in a readable format, called information.
                    We can perform the different types of mathematical operations on binary numbers.
   58   59   60   61   62   63   64   65   66   67   68