1 minute read

5. Project – BMI Calculator

Objectives

In this session, students will learn how to -

● Use the concepts learnt in the lesson to create a mini project – BMI Calculator.

Keywords

● Body mass index (BMI): Is a person’s weight in kilograms divided by the square of the height in metres.

● Comparison Operators: Are used to compare two numbers or strings

WEBS at a Glance

Recall the concepts covered in the previous coding session

● Instruct: Go to the Panel and open the Lab on Project – BMI Calculator.

● Discuss the concept of the calculator as given in the Panel.

● Invite answers from as many students as possible.

● Conduct the Project given in the Panel:

■ Say: Let us try and code for calculating the result of a BMI calculator.

■ Instruct: Click the Go to Practise 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.

● Ask the following probing questions:

■ Why do we need a BMI calculator?

Possible Responses: It helps us keep track of our body fat; Body fat can lead to illnesses and hence we can keep a check on it.

■ Can you think of creating any other calculators or checkers?

Possible Responses: We can create mathematical or basic calculators; We can check if a number is positive or negative; A number is even or odd; A number is a multiple of a particular number and so on.

● Assign the following project as homework:

■ Create a basic calculator that produces a result of +. -, *, / on a set of 2 numbers.

Note

● The project is optional. Assign it if feasible.

This article is from: