Computer Science 6-8 Cs Activity Pack
Computer Science 6-8 Cs Activity Pack
Table of Contents
A Day of Computer Science!
Other Grade Band Activities
Middle School Activities
Robot Zine
Behind a Web Page
Drawing with Code
1
Create, Compute, & Community Day!
Computer Science Activity Pack
Recommended Schedule
10 am - 11 am Animate a Memory
2
Create, Compute, & Community Day!
Computer Science Activity Pack
Robot Zine
Type: Unplugged
With advances in Artificial Intelligence (AI), it is more important than ever that we consider
how humans and computers will interact. How do you want the robots of the future to
behave towards you and others?
Vocabulary
Materials needed
Activity
● For this activity, you will create a “robot zine.” In this zine you will:
■ Identify what a robot is
■ Propose a new robot you wish existed or might invent someday
■ Include a code of conduct that you and your robot will follow
3
Create, Compute, & Community Day!
Computer Science Activity Pack
● On the first page of your zine, explain what a robot is in your own words
■ Add pictures and color too!
■ Make sure to highlight or bold what you consider key words
● On the next pages of your zine, add some surprising or interesting examples of robots
that you can find
■ Describe and/or draw them!
■ Make note of what they are used for and how they make human’s lives
easier/better
● On the next page of your zine, add a robot you wish existed
■ Describe and/or draw it!
■ You can look at these scenarios for inspiration: tinyurl.com/SpringBreakRobots
■ What robots do you think could help people get through the current
predicament?
4
Create, Compute, & Community Day!
Computer Science Activity Pack
Vocabulary
Materials needed
5
Create, Compute, & Community Day!
Computer Science Activity Pack
Activity
1. Look over the Web page on the web document, which is an example of a web
page, and the HTML code document, which is the HTML code for the example web
page
2. Find and highlight the content you see on the web page on the printed HTML
document
5. Which paired HTML tags do you see? What does the content of the web page look
like for each tag pair? What do you think each tag pair’s function is?
7. Share what you learned and/or created with a friend or family member!
6
Create, Compute, & Community Day!
Computer Science Activity Pack
There are many different programming languages, and each come with their own strengths.
P5.js is one of the Javascript libraries that has a full set of drawing functions. In this activity,
you will explore drawing basic shapes like a square, rectangle and circle by coding with
p5.js.
Vocabulary
Materials needed
● Computer
● Access to the p5.js online editor: editor.p5js.org
Activity
2. Canvas: Before drawing anything, first p5.js requires you to create a canvas on your
screen by setting up its width and height. This canvas is where your shapes will be
displayed and it has a coordinate system so that a computer knows where and what
to display on the canvas
7
Create, Compute, & Community Day!
Computer Science Activity Pack
3. P5 canvas coordinate system: Note that the p5 canvas coordinate system is different
from any other usual coordinate system. See the image below:
8
Create, Compute, & Community Day!
Computer Science Activity Pack
5. p5.js syntax: In p5.js, these pieces of information are used in the form shown below:
6. p5.js online editor: Open the online editor, editor.p5js.org, and draw the example
rectangle! Write the syntax for the rectangle like the image below, then click the
play button at the top-left corner:
9
Create, Compute, & Community Day!
Computer Science Activity Pack
8. Drawing order: When drawing multiple shapes, the shape that you draw first will be
drawn first, then the second one, then the third one and so on. If there is any
overlap, the first shape will be below the second one, the second one will be below
the third one, and so on
9. Challenges! Here are some drawing challenges with rectangles and ellipses.
■ We recommend using grid paper to sketch out the drawing, it will help you
figure out the location of each shape
10. What else can you draw? Can you make an image that you can print out and put
on your door to show your appreciation for those working on the front lines?
10
Create, Compute, & Community Day!
Computer Science Activity Pack
PLEASE READ!
11
Create, Compute, & Community Day!
Computer Science Activity Pack
Task: Interview a friend or family member so you can get ideas for a digital story
created with Scratch or PBS Kids Design Squad.
Directions: Interview a family member about their best memory from when they
were in school, or interview a friend about their best memory from a summer!
Type or write their responses under the questions below.
12
Create, Compute, & Community Day!
Computer Science Activity Pack
Sound
Operators
Sensing
13
Create, Compute, & Community Day!
Computer Science Activity Pack
Project Type
❏ movie animation
❏ interactive story
Project Description / Plot - How will a user interact with your project?
Storyboard Scenes - Draw and write what happens in your project as someone uses it.
What happens first? What happens next?
Project End
14
Create, Compute, & Community Day!
Computer Science Activity Pack
Sprites / Characters
What will this sprite do? What will this sprite do? What will this sprite do?
Will this sprite be shown or Will this sprite be shown or Will this sprite be shown or
hidden at the project start? hidden at the project start? hidden at the project start?
15
Create, Compute, & Community Day!
Computer Science Activity Pack
Task: Write down your ideas for your PBS Kids Design Square project.
Who will be in the digital Where does the memory When did this happen?
story? take place?
16
Create, Compute, & Community Day!
Computer Science Activity Pack
Included are some recommended activities that families can try at home. For even more
ideas, check out our Computer Science Remote Learning Guide for Families
(tinyurl.com/CS4AllRemoteParent)!
17
Create, Compute, & Community Day!
Computer Science Activity Pack
Algorithm Design - Creating clear instructions that can be executed without confusion
Bug - An error in a program that prevents the program from running as expected
Code - The language that programmers create and use to tell a computer what to do
Command - An instruction for the computer. Many commands put together make up
algorithms and computer programs
Function - A piece of code that you can easily call over and over again
Internet - A group of computers and servers that are connected to each other
18
Create, Compute, & Community Day!
Computer Science Activity Pack
Markup - The code that explains how a web page should be structured (e.g. HTML)
Persistence - Trying again and again, even when something is very hard
Program - An algorithm that has been coded into something that can be run by a machine
Pseudocode - A simple way of writing programming code in English without knowing any
programming languages
Syntax - A set of commands and ‘grammar rules’ each language has that must be followed
Zine - A self-made publication that might look like a small handmade magazine with text,
illustrations, and cutout images
19
Create, Compute, & Community Day!
Computer Science Activity Pack
A Few Puzzles…
The first group of trainee astronauts are all sitting around the table, waiting to start their first
day of training. From the clues given below, can work out where everyone sits?
Note: Seat 1 is next to Seat 2 and Seat 8, etc. Seat 5 is across from Seat 1, and Seat 7 is across
from Seat 3, etc. Seat 2 is a higher seat number than Seat 1, etc.
20
Create, Compute, & Community Day!
Computer Science Activity Pack
At the recent spring fete, four keen gardeners were each displaying their two fine roses In
total there were four colours and each rose colour appeared twice.
From the clues below can you tell who had which colour roses?
● Mr Green had a yellow rose.
● Mr Yellow did not have a red one.
● Mr Red had a blue rose but not a green one.
● Mr Blue did not have a yellow one.
● One person with a red rose also had a green one.
● One person with a yellow rose also had a blue one.
● One of the persons with a green rose had no red.
● Neither of the persons with a yellow rose had a green one.
● No person has two roses of the same colour.
● No two persons had the same two colour roses and their names provide no clues.
21
Create, Compute, & Community Day!
Computer Science Activity Pack
A: It made a website
A: A programerrrrrrrrrr!
A: A Hobbyte!
22
Create, Compute, & Community Day!
Computer Science Activity Pack
There are 10 types of people in the world, those who understand binary, and those who do
not.
Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.
23
Create, Compute, & Community Day!
Computer Science Activity Pack
24