Page 62 - Digicode_AI_class_8
P. 62

Critical Thinking
               code TASK                                                            Technology Literacy



              A.   Write a program to check whether a student has passed or failed. The criteria for declaring a
                 student as passed or failed are listed below:

                 For, percentage >= 40 : Pass
                 For, percentage < 40 : Fail













              B.   Write a program to check whether a given number is negative or positive. If the number is positive,
                 then print “Positive number”. If the number is negative, then print “Negative number”.






















































                60     DigiCode AI-VIII
   57   58   59   60   61   62   63   64   65   66   67