
1 minute read
3. Conditions III
Objectives
In this session, students will learn about -
● Conditions using the logical operator AND
Keywords
● Logical AND: Returns true if both conditions are true and returns false if any of the two conditions is false
WEBS at a Glance
Recall the concepts covered in the previous coding session
Play the video given in the panel to introduce the concepts to be covered in this session
Discuss conditions using logical AND operator Activity given in the panel Conclude the session Assign the homework
Action Plan
● Instruct: Go to the Panel and open the Lab on Conditions III.
● Play the video given in the panel.
● Discuss the Quiz questions given in the Panel.
● Invite answers from as many students as possible.
● Conduct Hot or Cold given in the Panel:
■ Say: Let’s check in what range the temperature falls.
■ Instruct: Click on the Assignment section.
■ Instruct: Click on the Go to Practice button to attempt the activity.
■ Walk around in the classroom and observe the activity done by the students.
■ Instruct: Click on the Yes button to submit the activity.
Note
● If time permits, conduct the additional activity given in the panel.
● Conclude: Today, we learned about conditions using the AND operator.
● Ask the following probing questions:
■ What kind of conditions can we check using an AND operator?
Possible Responses: We can check marks that fall in a range and assign a grade; We can check the age and decide if the person is a teenager, an adult, or old.
■ Where do you find the use of conditions in your day-to-day life?
Possible Responses: While in a fun park, there is a height or age limit that should be fulfilled; A person can vote if their age is older than 18; Some places only allow people within a certain age range; We can play a certain game at the gaming zone only if our age is older than 10 years and so on.
● Assign the following project as homework:
■ Input a student’s marks and write a condition for checking the marks and deciding if the student is an A grader. [A student who scores between 85 and 95 is an A grader.]
Note
● The project is optional. Assign it if feasible.