25

Click here to load reader

resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Embed Size (px)

Citation preview

Page 1: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Programming Patterns Launch LogThird Grade

Name ________________________

1

Page 2: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Table of ContentsPage Title Date

Activity 1: Story Factory1. Read the introduction story about Mylo, Suzy, and Angelina. Then

answer the following questions using complete sentences.2

Page 3: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

What is the problem?__________________________________________________________________________________________________________________________________________________________

What do you need to know to be able to design a solution to the problem?__________________________________________________________________________________________________________________________________________________________

What skills will be needed to solve the problem?____________________________________________________________________________________________________________________________________________________

2. Part of Speech Review – define each part of speech below. Then, give 2 examples for each part of speech type.

Noun ______________________________________________________________________ Examples ___________________________________________________________

Verb ______________________________________________________________________ Examples ___________________________________________________________

Adjective __________________________________________________________________ Examples

_______________________________________________________________

3. With a partner, complete the Mad Lib on the next page. Take turns choosing words to fill in the blanks with the correct part of speech.

3

Page 4: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

4

Page 5: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

4. Open Activity 1: Story Factory on your iPad. Read the introduction to find the definitions for the following words. Write the definition for each word.

Programs ____________________________________________________________________________________________________________________________________________________

Functions ____________________________________________________________________________________________________________________________________________________

Conclusion QuestionsIn this activity you used envelopes to pass a word to the main program. How did the main program “know” where to put the word in the main story?___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

You learned one way to use a function today. Can you think of other jobs that could be described as functions? For example: “Get ready for bed” and “Get ready for school” could both have a function called “Brush teeth.” Think of something you do often that is a small part of many activities, like unzipping your school bag or walking out the front door. Write down two or three activities that would require that small step. How is that small step like a function?________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

5

Page 6: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Activity 2: Rosie's Path1. Open Activity 2 in the Programming Patterns module. Click on "Computer Science

Background" under the Resources section. You will take notes below as your teacher goes through repeats, functions, and conditionals.

Describe a repeat loop. You may draw a picture to explain your thinking.____________________________________________________________________________________________________________________________________________________________________________________

What is "conditional" loop? Draw a picture to explain your thinking.____________________________________________________________________________________________________________________________________________________________________________________

Explain what a "function" is. _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

How can using a function make your program shorter? _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Describe what a "conditional statement" is in programming. _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Pseudo means false, so pseudocode is a "false or fake code". It is a set of instructions that humans can understand, but a computer cannot.

6

Page 7: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Activity 2: Rosie's Path Conclusion Questions You discovered how functions help you to write a more efficient program for Rosie

by reusing a sequence of cards in more than one place in the program. Can you think of another advantage to using functions?

Hint: Imagine that you have set up a function called “Spin” to make Rosie spin in a circle to the right. But then the rules for the challenge change and you need to make Rosie spin around to the left. Think about how you would make this change if you did not have a spin function set up. What advantage does the function give you?

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ Using "If" in a program is called a conditional. The program does the steps in the

conditional only if the condition is true. We use conditions all the time in our daily lives. Here is an example: if it is raining, then we will have indoor recess. Think of two more conditional statements that you use every day.

1. ______________________________________________________________________________________________________________________________________________________________________________

2. ______________________________________________________________________________________________________________________________________________________________________________

Draw a picture of one of your conditional statements from above.

7

Page 8: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Activity 3: Code Sketches Open Activity 3 in the Programming Patterns Module. Under the green “resources” section, click on Introduction To Hopscotch.

You will follow these steps with your partner to learn to use the Hopscotch program.

Once you have completed the Hopscotch tutorial, start with step # 2 in your procedures for Activity 3.

Part 1: Drawing A SquareUse a ruler to draw your square below. Then, write your instructions.

Define the following terms:Algorithm ______________________________________________________________________________Sequence ______________________________________________________________________________

Could a computer use your algorithm to complete the task of drawing a square? Why or why not?______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________Next, complete the procedures (2 – 12) with your partner for part 1.

Part 2 – Repeating CodeExplain in your own words what a “loop” is in coding.

8

__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Page 9: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

__________________________________________________________________________________________

Follow steps 13 – 17 in your procedures with your pair programming partner.Did you have a “bug” in your program? If you did, what was it and how did you fix it? If you did not have a bug in your program, describe what a “bug” is below._______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________What are the benefits of using loops in your code to complete a task?_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________Part 3 – Using FunctionsAfter your group discuss the “School Day” functions, explain how a function different from other code? ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Follow step 18 in your procedures, then answer the following questions in complete sentences.What is the speed set to when the character does the Spin? _________How many pixels does the character move by when it jumps? _________

Complete steps 19-24 of your procedures.

9

Page 10: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Part 4 – Being Creative!

Go through the rest of the procedures for this activity. Then use complete sentences to answer the conclusion questions below.

1. A loop gives you an easy way to tell a character to do a set of steps over and over again for a defined number of times. A function gives you a way to package up a set of steps and refer to them by a name so that the main program can call that set of steps as many times as needed.

a. Do loops and functions make programs shorter? Explain your thinking.______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

b. Think about the ways that loops and functions are different. Explain one of the differences between a loop and a function.______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

2. Computers are all around us: in our homes and at our schools. Some of the things you use every day have computers in them. Many of these devices use loops and functions in their programs. 

One example is the microwave. Microwaves have a popcorn setting, which is a pre-programmed function. A person only has to press the popcorn button and the microwave does the steps: set the preprogrammed time, turn on, turn off when time is up.

Think of a device that you have used and write about functions or loops that might be programmed into that device.

Draw a picture of the device. Use colored pencils.

Project: Variable Rules10

Page 11: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Part 1 – Understanding The Grid With your pair programing partner, complete the procedures for part 1 of the

project. Answer the following questions as you go through the steps. Why do these numbers keep changing as you move your character

around the screen?__________________________________________________________________________________________________________________________________________________________

Drag the character close to the origin. Do the numbers get bigger or smaller?_____________________________________________________________________________

Write down the values you get when your character is in the bottom-left corner. ___________________________

Drag the character close to the top-right corner of the screen. Do the numbers get bigger or smaller?_____________________________________________________________________________

Write down the values you get when your character is in the top-right corner. ______________

If your character’s x-coordinate gets bigger, what is your character doing on the screen?__________________________________________________________________________________

If your character’s y-coordinate gets bigger, what happens to your character on the screen?__________________________________________________________________________________

Draw a picture of the stage area in Hopscotch. Label where you find the origin. What are the coordinates of the origin? ___________________

Part 2 – Interactive Programs

11

Page 12: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

After discussing what an interactive program is with your group. List 3 programs you have used at home or school that are interactive.

1. ___________________________________________2. ___________________________________________3. ___________________________________________

What makes these programs interactive?_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Complete step 4 of your procedures. What is a pixel?

_____________________________________________________________________

How does using negative numbers change what happens to the pixels?__________________________________________________________________________________________________________________________________________________________________________________________Why do you think this happens?__________________________________________________________________________________________________________________________________________________________________________________________

Complete step 5 of your procedures. The table has been drawn for you.Rules for Moving: Event (When) Command

(Movement)Number of Pixels

Right

Left

Up

Down

Part 3 – Creating Variables

Explain the difference between “local” variables and “global” variables.12

Page 13: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Follow the instructions for step 5 in your procedures. What 2 variables will you be creating in this project?1. _________________________________________________________________________________2. _________________________________________________________________________________

Complete steps 6 – 17 in your procedures.

How did you and your pair programming partner work together? Was it difficult? Were there any conflicts? How did you resolve those conflicts?__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Draw a picture of you an your pair programming partner working together. Label who was the driver and who was the navigator.

Part 4 – Using Variables To Control The GameList the requirements (criteria) for this game.

13

Page 14: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Complete steps 16 and 17 from the procedures. Go back to activity 1 and click on “Flowcharts” if you need help creating a

flowchart for your game.MY FLOWCHART

How does the flowchart help you follow the requirements? _______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________Project Conclusion Questions

Name three events that can be used in Hopscotch and explain how they work.a. ______________________________________________________________________________

__________________________________________________________________________________

b. ________________________________________________________________________________________________________________________________________________________________

14

Page 15: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

c. ________________________________________________________________________________________________________________________________________________________________

Think of a game you have played on a tablet or a computer. Can you identify some variables and events that might have been used by the programmer to make this game work?

________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________

Problem: Creative Arcade Read and discuss step 1 of the procedures.

15

Page 16: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

List the rules for pair programming. Underline the nouns in blue. Circle the verbs in green.

Read through step 2 with your partner carefully to be sure you both understand the requirements for the game.

Skip step 3 of the procedures. Watch the video in step 4 about the Design Process. Complete step 5.ASK – a. What is the need or want we are trying to fulfill? (You can go back to the

introduction story in activity 1 to re-read the problem that Mylo, Suzy, and Angelina want to solve.)

b. What will make the solution successful? Consider the criteria you have been given. Describe how to meet each of those criteria in the solution.

Write down anything additional that you think will make the solution successful. Should it be fun? Should it be easy to use?

This list of things you have learned how to do in Hopscotch might give you good ideas:o User actions: tilting, shaking, tappingo Character events: bump, tap, move, drawo Programming: repeat loops, functions (abilities), variables, events (when)

c. What constraints will impact the solution? Think about things that may be restrictions, like the capabilities of the programming tool you are using or the amount of time you have.

Follow instructions for step 6 in the procedures. This should be done on your own – DO NOT SHARE IDEAS WITH YOUR PARTNER YET!

16

Page 17: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

EXPLORE –

Step 7 of your procedures – ask your teacher if you will be using the Decision Matrix after you and your partner have completed the modeling step in the Design Process.

MODEL – You must include pseudocode or a flowchart in this section. DO NOT RUSH THIS STEP!

MODELING CONTINUED –

17

Erica Brown, 07/10/18,
Page 18: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

Graph Paper if needed:

Read step 8 in your procedures. You will complete part a about evaluating and testing your solution. SKIP part B in procedures step 8. Complete part c.a. Explain how you will test your solution.

c. What could be improved?

18

Page 19: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

EXPLAIN –a. Write a summary about what you built. What does it do? How does it work?

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

b. Use evidence from your testing to describe how you would make improvements if you had time to re-do this project.________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Draw a picture to help explain your answers.

Programming Patterns Conclusion Questions1. While building the solution, you had to make sure you were meeting the design criteria.

Explain why it is helpful to know the requirements of a project before you start working on it.

_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

19

Page 20: resources.finalsite.net  · Web viewIn this activity you used envelopes to pass a word to the main program. ... User actions: tilting, shaking, tapping. Character events: bump, tap,

2. One of the key ideas in computer science is breaking big problems down into smaller problems and then solving each of the smaller problems. Give an example from your design process that shows how you broke a big problem into smaller problems.

_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

3. When you identified smaller problems to solve, did you discover something that could be accomplished with a loop or a function? Describe one loop or function in your solution.o If you do not have any loops or functions in your solution, look at it again to see if you

can find any sections of the code that repeat in another part of the program._____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

20