Logical Operators – Make a Calculator

Lesson Details
How do the various logical operators in PictoBlox – AND, OR and NOT – function? What are the different uses of logical operators?

Activities:

  • Creating a script to make an Automatic Grading System that takes marks from the user and gives a grade based on the marks.
Classroom Bundle Used: STEM Classroom Bundle, STEM Mini Classroom Bundle
Download Resources

Lesson Overview

Students will learn the following things:

  • What are the relational operators in PictoBlox?
  • Activity: Making a grading system which takes a number and gives the grade as output. 
  • Assignment: Making a calculator which do arithmetic operations on two numbers input by the user.

Material Required

1 set of the following material per group of 3-5 students:

ComponentImageQuantityAvailable in Bundle
PictoBloxInstalled in Computer

Lesson Outline

Logical Operators - 20 minutes
  • What are the logical operators in PictoBlox?
  • Three logical operators.
    • Logical AND
    • Logical OR
    • Logical NOT 
Activity 1 - 20 minutes

Make a program which takes a number and gives the grade as output. 

Assignment - 20 minutes

Make a calculator which do arithmetic operations on two numbers input by the user. The operation will also be selected by the user during the program.

Download Lesson Resources

Next Lessons