
1 minute read
5. Taking Input in Blockly
Objectives
In this session, students will build an assignment project named “Currency Converter” to showcase their learnings.
Keywords
● Currency Converter: Converts one currency’s value into the relative value of other currencies
● Exchange Rate: The price of one country’s currency in terms of another country’s currency
WEBS at a Glance
Revise the concepts from the previous coding class the slide on taking input and the Assignment problem with the students
● Say: Do you remember what we learned in the previous session?
● Invite responses from some students.
● Revise operators which we learned in the previous class.
Engage
● Instruct: Go to the Panel and open Taking Inputs in Blockly
● Discuss the challenge with the students.
● Explain how we can take input from the user using the prompt block.
● Explain the terms like Currency Converter
Currency Converter: Different countries use different currencies. The currency of one country differs in value from that in another country. Let us say, we are visiting the US. We will need US currency which is called the US dollar. A currency converter will help us understand how many US dollars we will get for a certain amount of Indian rupees.
● Ask the students to complete the Assignment. Instead of giving the solution, give hints.
● Help the students when required.
● Walk around in the classroom and observe the activity done by the students.
Sum-Up
2 min
● Conclude: Today, we have learned to program a currency converter. We will start with a new chapter in the next session.