0% found this document useful (0 votes)
37 views34 pages

Adv C3

Uploaded by

svchouhan4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views34 pages

Adv C3

Uploaded by

svchouhan4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Topic BINARY STRINGS PROGRAMING

Class Applying procedural programming paradigm to convert


Description high-level code language into machine-level binary. Kids'
relationship with technology undergoes a paradigm shift as
they program the machine to achieve their own objectives.

Class ADV-C3

Class time 50 mins

Goal ● Write short computer programs in blockly language

Resources ● Teacher Resources


Required ○ Use your [Link] login credentials
○ Earphone with mic
○ Notepad and Pen

● Student Resources
○ Use your [Link] login credentials
○ Earphone with mic (optional)
○ Notepad and Pen

Class structure Warm Up 2 mins


Teacher-Led Activity 8 mins
Student-Led Activity 30 mins
Wrap Up 5 mins
Project Pointers and Cue 5 mins

For working with the MIT App inventor, please refer to Teacher Reference Activity 3
before the class.

WARM UP SESSION - 2 mins

Teacher starts slideshow from slides 1 to 16.


Refer to speaker notes and follow the instructions on each slide.

TEACHER ACTIVITY - 8 mins

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
1
Teacher Initiates Screen Share

Say Do

Explain these steps to


I am going to write a few PROGRAMS using BINARY and students while you do these
then you will have to do the rest as we keep writing activities
complex computer programs like software developers do.
Teacher Activity 1-BINARY
ARTIST

Solution 1
Explain what we mean by
So, Binary means 0 and 1 wherein 0 is OFF and 1 is ON. Binary from above Activity
BINARY STRING is a combination of zeroes and ones.
1 link.
You can remember it like this:
ONE is the sign for light bulb ON
ZERO is the sign for light bulb OFF

Teacher Activity 2-BINARY


ARTIST
© 2022 - BYJU’S Future School.
Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
2
Solution 2

Remember we are writing computer PROGRAMS with


binary digits.

Image given below is for the


teacher’s understanding.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
3
Teacher Activity 3-BINARY
Now you see how we can write a PROGRAM to draw. ARTIST
Don't forget 0 is OFF and 1 is ON.

Let’s solve this.

So you see there are different blocks which help us to write


complex computer programs. As we go along we will learn
more advanced blocks used in PROGRAMMING.

Solution 3

Teacher Activity 4-BINARY


ARTIST

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
4
Solution 4

Teacher Stops Screen Share

Teacher starts slideshow from slides 17 to 20.


Refer to speaker notes and follow the instructions on each slide.

STUDENT ACTIVITY - 30 mins

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
5
Now it's your turn. Please share your screen with me.

● Ask Student to press ESC key to come back to panel


● Guide Student to start Screen Share
● Teacher gets into Fullscreen

Student Initiates Screen Share

Say Do

Remember how binary works and now you have to


complete these following coding activities. It will be great
fun.

Remember a COMPUTER PROGRAM is a set of Student Activity 1-BINARY


instructions written using a computer language. Algorithms ARTIST
are not a program.

Algorithm and program - both are sets of instructions, one


is written in English to understand the logic and solve a
problem. Now, this logic is written using some kind of
computer language and is called a program.

Here, you are using BINARY strings to write computer


PROGRAM.

Solution 1

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
6
Well done.
Let’s write more complex COMPUTER PROGRAMS using
binary strings.

Student Activity 2-BINARY


ARTIST

Solution 2

You are doing absolutely great.


Your computer programs are working well.

Can you draw a smiley with Binary Strings? Let’s find out
in the next activity.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
7
Student Activity 3-BINARY
ARTIST

Solution 3

Great! You see how we can switch Pixels ON and OFF


using zeros and ones. Let’s continue.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
8
Here, can you identify a repeating pattern?

Student Activity 4-BINARY


ARTIST

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
9
Solution 4

Student Activity 5-BINARY


ARTIST

Solution 5

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
10
You did an amazing job! Excellent.

Teacher asks the student to


go back to the Panel.

NOTE: Do the below thing if the student doesn’t have a android phone OR
NOX emulator installed in his/her system

Call the parent to inform them that from today we will start creating mobile
applications. Script and context for the same is mentioned below:

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
11
<Begin by greeting the parent>
I have called you, to inform you that from next class
onwards <student name> will start creating My Profile
mobile applications using the MIT platform.
MIT ( Massachusetts Institute of Technology ) platform is a
visual programming environment originally provided by
Google and now maintained by Massachusetts Institute of
Technology. This platform allows users to build fully
functional apps for smartphones and tablets.
If the parent asks that they
have only an IOS device
and why can’t they test on it.
So ask them to arrange
android phone if possible,
and also inform them MIT is
not yet completely
compatible with IOS once it
is completely compatible,
the apps which <student
name> will create will work
on both android and IOS
So for testing this application built on MIT <student name> devices
will require an android phone.
If possible please arrange one for <student name> so
from today <student name> can start working on it.
NOTE: Guide the student to download MIT AI2
companion application(Link has been provided in
Student-Modular-Activity-3.1).

If not possible then I will help <student name> to install


the NOX emulator which is a 3rd party emulator for testing
MIT applications,
NOTE: Guide the student to download NOX emulator

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
12
Let me show you the platform we are going to use to build Help the student understand
our “myprofile app”, which I talked about in the previous the platform. This activity
class. focuses only on the student
getting to know the MIT
We will be learning to use two platforms to build our apps
in this course. platform.

1. Applab: where we make apps to practice.

2. MIT APP INVENTOR: where we make apps to


publish

Click on the Student Module Activity 3 and follow the


steps.

Students should login using


1. Click
the same gmail Id which
2. Remember you have already created a google he/she had used for signing
account. Let’s use that to login. in on MIT.

Great!

This is a MIT platform.

1. Start creating an App by clicking on the following button:

2. Provide a name to your project. Remember this name cannot be changed and
press “OK”:

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
13
3. Design Section: If you remember from your trial class, every app has a Design
and Code. Components is where all the added design components are displayed
and Properties is the place where the properties of each component is being set:

4. Mobile Simulator: I hope you remember this from your trial class as well. Mobile
simulator helps in displaying how different content such as button, text, menu, and
so on, will appear on the phone screen.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
14
5. Design Component: This is where all the design elements are listed. You can just
drag whichever element you want in your app such as a button, label, and so on,
on the screen.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
15
6. Properties Tab: This is where you can set the properties of each element.
For example: To change the color and text of your button. Here, we haven't added
any element except a screen.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
16
7. Code Section: This is where we code to make the app interactive.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
17
Great!

From the next class onwards we will start building your profile app. So, please keep your
picture uploaded on your computer desktop. You can ask your parents to do it for you.

Teacher Guides Student to Stop Screen Share

WRAP UP SESSION - 5 mins

Teacher starts slideshow from slides 21 to 25.


Refer to speaker notes and follow the instructions on each slide.

FUN STUDENT ACTIVITY

● Ask the student to press the ESC key to come back to the panel.
● Guide the student to start Screen Share.
● Teacher gets into Fullscreen.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
18
Student Initiates Screen Share

Shall we begin with today’s fun activity where we will be Student Activity 6-EMOTION
converting our emotions into emojis? TO EMOJI

Before opening this website,


close the webcam from all
other websites where the
camera is used, and then open
this website.

When you open the website, it will ask you to give Ask the student to open the
permission to access the webcam. Please allow it. link for student activity 6.

Now, make a facial expression and press the

button. This will capture your image,

and then press the button. And wait


for the computer to get the predictions.

Prediction 1: The most accurate


© 2022 - BYJU’S Future School.
Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
19
Prediction 2: Is the computer suggesting that you might
also have made this facial expression?

If the prediction is not right, that is also fine. Emotion to


Emoji is not trained on all the emotions in the world.

Further in the course, when you will create your own


Emotion to Emoji application there you can train the
computer as per your facial expression, then the computer
will never be wrong.

Great!
Let’s move ahead.

Student Stops Screen Share

DID YOU KNOW, UPCOMING CLASS, AND PROJECT POINTERS AND CUES - 5
mins

Teacher starts slideshow from slide 26 to 28.


Refer to speaker notes and follow the instructions on the slide.

Teacher Initiates Screen Share

Say Do

Note: You can assign the


Project Name: BINARY CHALLENGE project to the student in
class itself by clicking on
the Assign Project button
Goal of the Project: which is available under
the projects tab.
Today, you learned about binary strings which are
created using 0 and 1. You drew different patterns using Open the Project Solution
binary strings. link and demo the project to
In this project, you will have to practice and apply what you the student
have learned in the class and make a design using binary
strings of 0 and 1.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
20
Story:

Reshma likes to draw. She has to draw a lock pattern -


either a white lock on the black background or a black lock
on the white background.

Can you help her?

The project will take only 30 minutes to finish. You can


try and finish it immediately after this class.

I am very excited to see your project solution and I know


you both will do really well.

Bye Bye!

Teacher Stops Screen Share

Teacher Clicks

Additional Activities

Teacher starts slideshow from slides 29 to 35.


Refer to speaker notes and follow the instructions on each slide.

STUDENT ADDITIONAL ACTIVITY

Student Initiates Screen Share

Say Do

Additional Activities Additional Activity


1-BINARY ARTIST

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
21
Solution

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
22
You can try some more challenging activities

Additional Activity 2-
BINARY ARTIST

Repeat 32 times the binary string 10101010 and see what


happens

Solution A2

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
23
Additional Activity A3-
BINARY ARTIST

Now can you change the binary string to change white


stripes to black and black stripes to white?

Solution A3

Additional Activity 4-
BINARY ART 1

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
24
Required output

To get the function, click on function and drag and drop the function.
© 2022 - BYJU’S Future School.
Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
25
Like this -

Then add a math block and give value to it. The value will be the row number.

For example: If you want to add to row 1 the it will be:

Solution for AA 4 :

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
26
Additional Activity-5
BINARY ART 2

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
27
Required output-

We will use the “Jump To Row” function to jump at any row.

For example:

The above code will jump to row 2.

You can find this block inside the Functions.

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
28
We will also use a repeat loop to repeat some tasks. You will find this block in the Loops
tab.

this means -

Solution for AA 5 :

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
29
© 2022 - BYJU’S Future School.
Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
30
© 2022 - BYJU’S Future School.
Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
31
Activity No. Name of the Links
Activity

Teacher Activity 1 BINARY ARTIST [Link]


X-1vRNr9GMfsuIZrac_uogornyhpn5BMZ8eA
KGL2LWxR7eOZSl0X1dIUAH0lkF7eJyaYvz
B8Mg-0MtJUMJ/pub

Teacher Activity 2 BINARY ARTIST [Link]


evels/1

Teacher Activity 3 BINARY ARTIST [Link]


evels/6

Teacher Activity 4 BINARY ARTIST [Link]


evels/2

Teacher Reference MIT AI2 Companion [Link]


Activity 1 App DOWNLOAD =[Link].aicompanion3&hl=en_I
N&gl=US

Teacher Reference HOW TO TEST MIT [Link]


Activity 2 ON ANDROID 7xOHVnl90yshWa6Nxfb98/view?usp=sharin
PHONE g

Teacher Reference MIT TEACHER [Link]


Activity 3 GUIDE X-1vTSVSooc99svDx4SinvfenhP7Qjytqupciv
M-XuY-WwOshBUp6WaeQJvDCtyKFit7EeM
RS2Lax9Ztsr/pub

Student Activity 1 BINARY ARTIST [Link]


evels/3

Student Activity 2 BINARY ARTIST [Link]


evels/4

Student Activity 3 BINARY ARTIST [Link]


evels/5

Student Activity 4 BINARY ARTIST [Link]


evels/7

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
32
Student Activity 5 BINARY ARTIST [Link]
evels/8

Student Activity 6 EMOTION TO [Link]


EMOJI oji

Student Module MIT PLATFORM [Link]


Activity 3

Student Module MIT AI2 Companion [Link]


Activity 3.1 App DOWNLOAD =[Link].aicompanion3&hl=en_I
N&gl=US

Student Module NOX STUDENT [Link]


Activity 3.2 GUIDE X-1vQ99Fa-L4Fy-j5apoqW82zj4ZvVWOXvA
gjX4e3lWpZFHEaHqLx9b3kUqNuIKavG1CK
4KCm5mT098Oyl/pub

Additional Activity 1 BINARY ARTIST [Link]


ns/18/extras?id=175939

Additional Activity 2 BINARY ARTIST [Link]


evels/11

Additional Activity 3 BINARY ARTIST [Link]


evels/11

Additional Activity 4 BINARY ART 1 [Link]


oUaSpYRR4cEhz0-UJVjdXnpbIH9ls83ltbpSf
A/view

Additional Activity 5 BINARY ART 2 [Link]


VeSvkQxaC9wFmkZqqQ35S8aZDm62oabN
oKutQ/view

PRACTICE PRACTICE [Link]


ACTIVITY 1 zzle/6

PRACTICE PRACTICE [Link]


ACTIVITY 2 zzle/7

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
33
Student Reference HOW TO CREATE [Link]
Activity 1 A YOUTUBE
CHANNEL

Teacher Reference Visual aid link [Link]


Visual aid link /[Link]
ml

Teacher Reference In-class quiz [Link]


In-class quiz /[Link]
f

Project Solution BINARY [Link]


CHALLENGE PDyHp374xvTTW-dJKgJ8fXmoB9DkAyNp6
RceCRnCk

© 2022 - BYJU’S Future School.


Note: This document is the original copyright of BYJU’S Future School.
Please don't share, download or copy this file without permission.
34

You might also like