You are on page 1of 2

Demo Script

Project: Voting Eligibility Bot


Coding platform walk-through- AI Playground by Camp K12

URL :- https://theaiplayground.com/bot/new

A brief about AI Playground

On AI playground we can: -
1. Can execute code and see the changes on the same screen.
2. Store projects and refer any time in future.
3. Explain coding area.
4. Explain how we can sync the code with bot.
5. Demonstrate from where kids can mute the bot.

How to create a simple voting eligibility bot?


Students are going to learn how to create a bot to identify whether they can vote based on age.

Code to execute:

Bot.send("Welcome to Vote Eligibility Bot");


Bot.send("Please enter your age ? ");
async function respond(inputText){
var age=inputText;// Explain variable
console.log("Age entered by user : "+inputText);
if(inputText>=18){// explain if condition using some example
Bot.send("You are eligible to vote !");
}
else {// explain else condition
Bot.send("You are not eligible to vote ! ");
}
}

this class. Teacher explains the topic to the students as narrated below.

Teacher Action Student Action

Let us see what we will create today. Students watch the final project

What is voting? Way to select leader of the country/ state.

Can anyone vote or do we have a minimum age? We have a minimum age.


You are right, we have to be 18 years to vote!
I want you to enter your age and see what the Bot
does. Students do as asked.
Now enter an age above 18 and see what happens.

What happened in both cases? Students enter a number >18.

Demo Script - Voting Eligibility Bot 1

Created with
PDFBear.com
So! Today we will be making our very own Voting eligibility Bot

Teacher modeling

Teacher Action Student Action

I will now make the code with your help.

• How is the bot interacting using code?


Explain use of variables in storing
value. Students listen and observe
• How can we can display different messages
based onage?
• Explain how we can use if/else to display different
messages based on different age group.

Nice, let us try and do this on our own now...

Guided and Independent Practice


Teacher action Student action

Open your AI playground and login with your IDs Students’ login using their IDs
Explain Coding area in AI playground.
Now let us write a code to take age as input and let
me know when you are done. Students writes code to fetch age from bot.
To tell the computer that only 18 and above can vote,
we need to set an if, then condition. Can you try that? Students write a condition to test who all are eligible to
vote.

We are now going to do a peer review of our projects.


We will show our projects to the team.

While one student is showing the project the other


student will read and see if there is anything he/she did
Students show thumbs up
not understand. Then they will ask questions about it.
Check for understanding: So, when Student 1 is Listen and ask questions or do your own work?
showing the project what will you do?

(Do the action of thumbs up and thumbs down while


Students share their screen and show their projects.
setting the options. This is important, otherwise students
will not remember which sign represents thumbs up
and which is thumbs down )

Some Guidelines

Use real-life examples to connect to the various concepts in the project

⚠ Avoid using Tech-Jargons while explaining the code or the control structure as the audience for whom it is intended is
of a lower age group.

Demo Script - Voting Eligibility Bot 2

Created with
PDFBear.com

You might also like