Page 142 - TP_Plus_v2.2_Class_8
P. 142
6. Competency-based/Application-based questions.
a. Lokesh has created a program in which he has written blocks of code multiple
times to cover the path ten times if a given condition is true. What can he use to
reduce the lines of code in his program?
b. Your sister Vidhya wants to display “Yes” or “No” for a year to be both a leap year and a
century year. But she is unable to do so. Write the program for her.
teCh Zone
Let's soLve
Write a program to check whether a student has passed or Century #Critical Thinking
21 st
failed. The conditions for declaring a student as passed or failed Skills
are listed below:
For, percentage >= 40 : Pass
For, percentage < 40 : Fail
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.
teCh PraCtiCe 21 st
Century #Technology Literacy
Skills
Visit your computer lab and perform the following actions:
1. Design a flowchart in MS Word for calculating the area of the rectangle.
2. Make your flowchart colourful for easy conversion into algorithm and follow some colour
convention like green for input/output and blue for processing box.
For The Teacher
Discuss about some real-life examples of conditional situations to teach the concept of conditions.
Explain the concept of loop with some real-life examples.
140 Plus (Ver. 2.2)-VIII

