Page 62 - ThinkGPT_V2.1_C8_Flipbook
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 Premium Edition-VIII

