Page 109 - Touchpad_Plus_V3.2_Class 7
P. 109

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
                      PRINT "Check timetable"                                  PRINT "Fail"

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


                        Restart

                       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.

                       Conditional  statements  are  used  in  a  program  to  instruct  the  computer  to  make  a
                      decision.




                                                          Checkpoint




                 A.  Tick ( ) the correct option.

                    1.  What is a flowchart?

                       a.  A type of computer virus
                       b.  A type of computer

                       c.  A pictorial representation of an algorithm

                       d.  A type of computer processor
                    2.  Which of the following languages can a computer understand?

                       a.  Binary language                             b.  High level language

                       c.  English language                            d.  Hindi language




                                                                                        Algorithmic Intelligence     107
   104   105   106   107   108   109   110   111   112   113   114