 Author:
 Mary Dickerson
 Subject:
 Algorithms and Programming, CrossCurricular, Writing, Computation and Estimation
 Material Type:
 Activity/Lab, Lesson, Lesson Plan
 Level:
 Middle School
 Grade:
 6, 7, 8
 Tags:
 License:
 Creative Commons Attribution NonCommercial
 Language:
 English
 Media Formats:
 Downloadable docs, Interactive
Education Standards
Decomposition & Word Problems Part 2
Overview
This lesson expands upon the ideas of decomposition by using GameChangineer to incorporate commands to create a coded mini game from decomposing word problems. Students will assist the teacher in this guided lesson on how to create commands and use the website before engaing independently in Part 3. Activities are low prep with modifications included, but do require organized planning to implement effectively.
If you have not done a lesson on decomposition, it is suggested you use Part 1 to help student's gain the necessary understandings of the processes used in this lesson.
Lesson Plan
Decomposition & Word ProblemsPart 2 of 3Grade 68by Mary Dickerson 
Subject & Standards  Computer Science: Algorithms and Programming7.4: The student will decompose problems and subproblems into parts to facilitate the design, implementation, and review of programs.6th and 8th: Continue decomposition of problems and subproblems into parts.Math: Computation and Estimation7.3: The student will solve singlestep and multistep practical problems, using proportional reasoning.*7.12: The student will solve twostep linear equations in one variable, including practical problems that require the solution of a twostep linear equation in one variable. *6.13: The student will solve onestep linear equations in one variable, including practical problems that require the solution of a onestep linear equation in one variable. English: Vocabulary & Structure6.8, 7.8, 8.8: The student will edit writing for correct grammar, capitalization, punctuation, spelling, sentence structure, and paragraphing.7.5a: The student will read and demonstrate comprehension of a variety of fictional texts, narrative nonfiction, and poetry by describing the elements of narrative structure including setting, character development, plot structure, theme, and conflict.Science: 6.1 and LS.1: a) The student will demonstrate an understanding of scientific and engineering practices by a) asking questions and defining problems and b) planning and carrying out investigations*Can modify activity to use process with equations 
Learning Objectives  1. Students will identify basic vocabulary related to decomposition2. Students will analyze word problems to decompose them3. Students will create a set of code using proper sentence structure. 4. Students will decompose a word problem to create a simple game.5. Students will engage in the development process of plan, design, and review. 
Materials  Vocabulary  
Lesson Slide Deck Pencils for classChromebooks or iPads for classCalculators for class or Desmos VA ScientificAccess to this website Printouts of Slide #3 and #11 (print front to back, with slide 3 on one side and two copies of slide 11 on the other; print as separate sheets if desired for more space)  Decompose: System of program design that involves breaking problem down into smaller tasks Subprogram: A section of code designed to complete a task that is used multiple times within a program Debugging: Systematically finding the cause of an error in a program and fixing itCommand: An instruction telling a computer program to do something 
Prior to lesson:
 
Engage/Build Background Knowledge (15 minutes)  
(Share slide) (Tsay:) Today we are going to extend the idea of composition and make connections to the process used to design and develop programs. Our goal today is to break a word problem down and then use it to develop code for a simple game you will design.  
(Share slide) (Distribute handout from slide #3 and #4)PreAssess: (Tsay): When I say “turn and talk,” please complete the task with your shoulder partner. Decompose the following problem into smaller parts that would make it easier to solve just like we did yesterday. Use your handout to help. There are 10 carrots and a bunny. The bunny can eat half the carrots. How many carrots does the bunny get to eat?(Tsay): Turn and talk.
 
(Share slide) (Tsay): These were our focus vocab words yesterday. There is a new word–command–that we did not discuss previously. Commands will be important to us today because you will be writing commands in the activity. Commands are the instructions we use in a program to get the program to complete a desired task. Commands can be simple or more complicated based on what you need the program to perform. In order to write commands, it’s best to decompose the task at hand to reflect all pieces of the problem you need the program to do. Debugging has to occur when we write faulty commands that create errors. Commands will also be used in subprogramming when coding. This is a complicated process and our goal is not to understand every part of this today, but to grasp that these terms are connected and rely upon each other to make program design a success. In later lessons, we may get into more specifics.

Direct Instruction (4045 minutes)  
(Share Slide) (Tsay:) Let’s go back to the animals for a minute. Raise your hand if you would like to share how you decomposed this word problem.
 
(Share Slide)(Tsay:) Now, we are taking this problem one step further. We are going to use our decomposition to be able to plan, design, and review commands that we write to code a simple game that relates to the word problem. We are going to use a program called GameChangineer. In order to help us decompose and design, I would like to show you the website and an example first. As we explore the website, please write down anything you notice related to decomposition and commands.
 
**Optional(Tsay:) I am going to give you five minutes to explore the website on your own. It’s best if you start with one of the beginner samples because we are not ready for the more advanced ones yet. When the timer goes off, please close your chromebooks.
 
(Share Slide)
 
(Share Slide)(Handout from slide #3 and #11 should have been distributed earlier)(Tsay:) We are going to create a mini game together. In order to do this we need to decompose our large task into specific pieces. Using your handout, let’s break down the problem into the pieces we need to reflect all aspects of our word problem and use our creation to represent the solution.
 
(Tsay:) We have our commands so let’s copy and paste them into GameChangineer to review our design and see if it works like we intended!

Review and Assess Options  
Review: (Share Slide)
 
Assess: (Share Slide)
 
Assess:
 
Assess:

Extensions/Modifications 

This work is licensed by Mary Dickerson under a Creative Commons AttributionNonCommercial 4.0 International License. 2022