Docsity

scratch study guides, Study notes of Computer science

Toggle sidebar
bg1
Student activity guide
STEP 1: PREVIEW YOUR MISSION
In today’s coding activity, you will use debugging tips and tricks to identify and fix errors in five
dierent Scratch programs.
PROJECT PREVIEW
Click the button below to open up a preview of
what you’ll be creating today.
Mission Checklist
❏I looked at all five of the Scratch Debug
It projects.
❏I identified the cause of the errors in
each project and added blocks or
explained how to fix each error.
Spicy Challenges
❏Create a project that has at least one
error and trade projects with a
classmate to debug each other’s work.
STEP 2: READY, SET… GET CODING!
Use debugging tips and tricks to identify and fix errors in five dierent Scratch programs.
A — Remix the Starter projects
1. Log in to your Scratch account and open the "1.10 Debug It!" studio.
2. For each of the five projects in the studio, do the following:
a. Open a project and review what needs to be fixed.
b. When ready to make changes, click "Remix" to create a copy of the project.
c. Click "Share" to make your project viewable.
d. Rename your project.
e. Click "See Inside" so you can review the existing code.
3. Check out the problem and mission for each project and work through solutions. You may
want to use these general steps if you don't know where to start:
a. Review the existing code.
b. Try a solution.
c. Test your solution.
d. Repeat until the program works how it should.
pf3
pf4

Partial preview of the text

Download scratch study guides and more Study notes Computer science in PDF only on Docsity!

STEP 1: PREVIEW YOUR MISSION

In today’s coding activity, you will use debugging tips and tricks to identify and fix errors in five dierent Scratch programs.

PROJECT PREVIEW

Click the button below to open up a preview of what you’ll be creating today.

Mission Checklist

❏ I looked at all five of the Scratch Debug It projects. ❏ I identified the cause of the errors in each project and added blocks or explained how to fix each error.

Spicy Challenges

❏ Create a project that has at least one error and trade projects with a classmate to debug each other’s work.

STEP 2: READY, SET… GET CODING!

Use debugging tips and tricks to identify and fix errors in five dierent Scratch programs.

A — Remix the Starter projects

  1. Log in to your Scratch account and open the "1.10 Debug It!" studio.
  2. For each of the five projects in the studio, do the following: a. Open a project and review what needs to be fixed. b. When ready to make changes, click "Remix" to create a copy of the project. c. Click "Share" to make your project viewable. d. Rename your project. e. Click "See Inside" so you can review the existing code.
  3. Check out the problem and mission for each project and work through solutions. You may want to use these general steps if you don't know where to start: a. Review the existing code. b. Try a solution. c. Test your solution. d. Repeat until the program works how it should.

Here are some of the code blocks you've used so far that might help you with your debugging missions.

Events Motion Looks

B — Debugging Mission 1

Problem

When Giga broadcasts the message "ShowPico," Pico the sprite should appear, but he doesn't!

Mission

Look at the code and debug the program so that Pico appears when Giga broadcasts the message.

C — Debugging Mission 2

Problem

The ladybugs should jump when they receive the "jump" broadcast, but Yellow Ladybug doesn't jump!

Mission

Look at the code and debug the program so that Yellow Ladybug jumps.

D — Debugging Mission 3

Problem

The other sprites are supposed to start dancing when Scratch Cat is clicked, but they don't!

Mission

Look at the code and debug the program so the dance party starts when Scratch Cat is clicked.

E — Debugging Mission 4

Problem

The monkey should move to the trampoline when the trampoline is clicked, but he does not!

Mission

Look at the code and debug the program so that the monkey moves to the trampoline when the trampoline is clicked.

XY Coordinates (n):

The horizontal (x) and vertical (y) address of any point on a computer screen.

debugging (v):

Finding and fixing errors in a program.

Appendix: Helpful Links

Use the links in this section if you are stuck or simply want to know more about using a code block or concept in Scratch.

Project Links

● Scratch homepage ● Scratch "1.10 Debug It!" Studio ● Coding Activity Walkthrough Video

Scratch Wiki Links

● Events blocks ○ when green flag clicked ○ when this sprite clicked ○ when () key pressed ○ broadcast () ○ when I receive () ● Motion blocks ○ point in direction () ○ turn right () degrees ○ turn left () degrees ○ set x to () ○ set y to () ○ change x by () ○ change y by () ○ glide () secs to x: () y: () ○ move () steps ○ go to () ○ go to x: () y: () ● Looks blocks ○ say () for () seconds ○ change size by () ○ set size to () % ○ change () eect by () ○ show ○ hide