Page 62 - Dig_CodeAI_V2.1_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 pass or fail 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”.













                    C.   Write a program to display your name ten times if your age is 13 years: otherwise, display "Hello".


















                            SDG Activity




                     Create a program to track agricultural production and consumption, calculating yearly
                     wastage by subtracting consumption from production. The program will loop through
                     annual data and display the results.








                      60     DigiCode AI (Ver. 2.1)-VIII
   57   58   59   60   61   62   63   64   65   66   67