Codeathon Course
Amazon Future
Engineer - Code-a-
thon
Session 1
(Time limit: 2 hours)
What is Coding?
Binary Encoding
Types of coding
Algorithm & Sequential algorithms
Introduction to Sprite Lab
2
Purpose Objective
Learners will learn about the concept of Students will be able to:
algorithm, dragging and dropping and types of The student will be able to describe Coding and
Programming language. They will use code.org to
explore the Sprite lab and create an animation . algorithms to in her/his own words.
Describe the binary number system
The student will be able to differentiate between
text-based and block-based coding.
The student will be able to perform hands on
activity using Sprite Lab.
3
What is
Coding?
Coding or Programming means writing the step-by-step instructions that tell
the computer what to do. A set of Instructions that computer follows to
complete a task is known as PROGRAM.
4
What would be your answer?
If somebody asks you, “Is the fan ON?” Correct! Your answer will be either yes or no.
5
Transfer of information in computer
The wires inside the computer carries the electrical information in two options : Off and On.
When computers represent information using only two options, it is called Binary.
6
Binary Number system
Binary number system makes use of only two digits that are 0 and 1. In this number system any number is
represented by using only two digits that is 0 and 1.
7
Binary Cards
8
Activity!
Q1.How would you represent the color
pink?
A1. Pink: 'Up Up down'.
Q2.What color does this represent:
Low low High?
A2. Low low High : Blue
9
Computer Programming Languages
A programming language is a type of written language that tells computers what to do in order to work.
Programming languages are used to make all the computer programs and computer software.
10
Basic Types Of Programming Languages
Text-
Based
• Coding is done by typing • Block-based coding is
various characters following a essentially a drag-and-drop-
certain syntax (rules and based learning platform.
regulations) of a particular
language.
• Programmers use blocks that
represent coding instruction.
• Some text-based languages
include Java,
Text JavaScript, Python
Based BlockBlock Based
etc.
Programming Programming
Based
11
Algorithm
An algorithm is a step-by-step sequence of instructions that are followed to complete a task. Algorithms
are very often used to describe how a computer might solve a problem. A recipe for making tea can be
considered a type of algorithm.
12
A General example of Sequential
Algorithms
Here are the instructions for making a smoothie:
1. Add fruit to the blender.
2. Add milk to the blender.
3. Put the lid on the blender.
Imagine what will be the result if we missed out one
4. Switch the blender on. of the steps or reversed the order.
We could end up switching on the blender with
nothing in it, or there could just be milk in the
blender and no fruit.
13
What can you observe in the picture?
Yes, Correct!!!
All the animals are being placed to their respective positions.
14
Drag and drop
Drag and drop is a common action performed that involves moving the cursor over an object, selecting it
and moving it to a new location.
Drag and drop using mouse.
Drag and drop using touch screen.
15
Code.org
Code.org is a fun, creative platform for learning basic coding and computer science.
16
Steps to log in to Code.org
Step 1: Click on the link https://studio.code.org/users/sign_in.
17
Steps to log in to Code.org
Step 2: Enter the 6 letters section code given by the trainer and click on the 'Go' option.
18
Steps to log in to Code.org
Step 3: A new page will open with the text ' Welcome to Introduction'.
Step 4: Choose your name from the options shown on the screen.
19
Steps to log in to Code.org
Step 5: Select and click on the character that matches with the character given by the trainer.
Step 6: Click on the 'Sign in' option and get started.
20
What is a Sprite ?
• Sprites are the images on a
computer program screen.
• Every program is made up of
sprites and the scripts
(Instructions) that control
them.
• Sprites can be made to move
around, change their
appearance, and be controlled
by the player.
21
Sprite Lab
Sprite Lab is a block-based programming environment where you can make simple animations
and games with objects and characters that interact with each other. Create an animation or
game then share your app in seconds.
22
Different Parts of Sprite Lab Project Page
MENU
Preview Screen & Control
Buttons Workspace
Block Section
23
Types of Blocks used in Sprite Lab
• World
• Sprites
• Locations
• Behaviours
• Loops
• Events
• Variables
• Math
• Logic
• Functions
• Comments
• Text
24
World
World blocks are used to set or make changes in
the background and surroundings in terms of
visuals, sounds and animations playing the
background.
Some of the examples of World blocks are:
25
Projects Links
Life below water Life On Land Day Scene Life Cycle of Butt
erfly
26
Let's Summarize!
Q1. An algorithm is a step-by-step sequence of ______ that are followed to complete a task.
a) Questions b) Instructions
Q2. Computers represent information using only two options, it is called ______.
a) Binary b) Decimal
Q3. In binary number system any number is represented by using only two digits that is ______.
a) 0 and 1 b) 2 and 3
Quiz
27
Answers!
Q1. An algorithm is a step-by-step sequence of ______ that are followed to complete a task.
a) Questions b) Instructions
Q2. Computers represent information using only two options, it is called ______.
a) Binary b) Decimal
Q3. In binary number system any number is represented by using only two digits that is ______.
a) 0 and 1 b) 2 and 3
Quiz
28
There is no end to education… (Your) whole of life, from the
moment you are born to the moment you die, is a process of
learning.
J Krishnamurthi
THANK YOU
29