Song Writing. Main Goal: Learn how to define and call functions. OVERVIEW: PREPARATION: VOCABULARY: OBJECTIVE: MATERIALS: LESSON NAME:



Similar documents
Music For Every Classroom: Make Your Own Holiday Music by Elizabeth M. Peterson Copyright 2005 by Elizabeth M. Peterson

Parable of The Prodigal Son

Preschool March Lessons. Dr. Seuss Day. One Day Free Sample

Self-Acceptance. A Frog Thing by E. Drachman (2005) California: Kidwick Books LLC. ISBN Grade Level: Third grade

The Fruit of the Spirit is Love

Junior Soldiers. Unit 4 : Lesson 8

Talk To Your Baby Quiz

California Treasures High-Frequency Words Scope and Sequence K-3

A Note to Parents. 1. As you study the list, vary the order of the words.

LESSON TITLE: A Story about Investing. THEME: We should share the love of Jesus! SCRIPTURE: Luke 19:11-27 CHILDREN S DEVOTIONS FOR THE WEEK OF:

Getting to Know God: Who God Is Week 7: God Is Unchanging LEADER PREPARATION

David and Jonathan Lesson Aim: To know God sends us friends.

Songwriting. Geniuses. for. 25 Tips for the Genius in Everyone. By Gene Burnett

I Miss My Pet: A workbook for children about pet loss

Joseph in Egypt. Genesis 39:2-3 the LORD was with Joseph and gave him success in everything he did.

ICN Sharing Page TEACH US, AMELIA BEDELIA By Peggy Parish

May 25th, "Car Buying: How to Avoid the Extra Stress"--Mary Dittfurth

Jesus is The Way. A copy of the activity sheet for each child A hole-punch Crayons, scissors, yarn, and double-sided tape Duct tape for one activity

Numbers Must Make Sense: A Kindergarten Math Intervention

Jesus and Nicodemus Lesson Aim: To know God loves the world.

TCM040 MSOM NEW:TCM040 MSOM 01/07/ :13 Page 1. A book of games to play with children

Happy Birthday Dr. Seuss. Storytime

Lowercase Letters Capital Letters Picture Cards

Wise Men. Lesson At-A-Glance. Gather (10 minutes) Center Time Kids stamp stars, make play clay stars, and color Bible story pictures.

Jesus Chooses His Disciples

Of Mice and Men Unit Test Matching: **Please match the description of the character to each character below. Please use all capital letters!

David s Heart: David Praises God

Light of the World: Salt of the Earth

AR State PIRC/ Center for Effective Parenting

How to Win Against Sin Lesson Two: The Belt of Truth

Lyrics on following pages

Jesus at the Temple (at age 12)

PUSD High Frequency Word List

Moses and Pharaoh (The Ten Plagues)

Fun Songs for Kids. Musicplay 1 Revision

How To Proofread

Valentine s Day Lesson

Icebreaker: Fantastic Four

Components of a Reading Workshop Mini-Lesson

Guide to Letters of Recommendation, Thank You and First Choice Letters

Intro to the Art of Computer Science

The Easy Way To Flipping Domain Names

Fry Phrases Set 1. TeacherHelpForParents.com help for all areas of your child s education

ADD/ADHD in the Classroom

SALE TODAY All toys half price

Vieta s Formulas and the Identity Theorem

Main Point: God gives each of us gifts and abilities. We should use them to glorify Him.

LESSON TITLE: Jesus Visits Mary and Martha THEME: Jesus wants us to spend time with \ Him. SCRIPTURE: Luke 10:38-42

There are many reasons why reading can be hard. This handout describes

Unit 3: Moving Toward Maturity Lesson 10. Discussion Questions. Why not? (Because He is a Spirit.) phone or the computer? (In our hearts.

King Solomon Asks to Be Wise

Using Proportions to Solve Percent Problems I

Ep #19: Thought Management


Current California Math Standards Balanced Equations

A COACHING GUIDE TO EASY AND FUN CHEERLEADING TRYOUTS

family games Taking the kids swimming is a great way of making sure they re moving around and having fun. And to help you get them into

The 5 P s in Problem Solving *prob lem: a source of perplexity, distress, or vexation. *solve: to find a solution, explanation, or answer for

Character Traits. Teacher Talk

Sermon Faith Is Risky Business Matthew 25: HGJ CtK

ONLINE SAFETY TEACHER S GUIDE:

Add a few drops of paint to shaving cream. Have the children use this to paint with. Not mixing the paint in will give it a special look.

United Church of God An International Association. Level 3 Unit 5 Week 3 THE PARABLE OF THE TALENTS

Erin A. Yetter, Ph.D., Federal Reserve Bank of St. Louis Louisville Branch

Short vowel a The Apple huge Short vowel o Cute Baby [Boston accent] standard dialect

Teachers should read through the following activity ideas and make their own risk assessment for them before proceeding with them in the classroom.

PEER PRESSURE TEACHER S GUIDE:

Put Your Song to the Tests

Making Inferences Picture #1

The Girl Who Stutters

Moses. July 11-12, God has a plan for us. Exodus 2-4; Jeremiah 29:11

PRESCHOOL WORSHIP SONGS

LANGUAGE ARTS 109 FUN WITH WORDS

Conditionals: (Coding with Cards)

HOW TO SELECT A SCIENCE FAIR TOPIC

The Ten Commandments. Lesson At-A-Glance. Gather (10 minutes) Arrival Activity Kids create a graffiti wall with family rules.


I CAN DO IT LYRICS. I put my heart and my mind to it And I can do it.

BABY ANIMALS. Science can be fun! A lot can be learned by singing, playing, talking, reading, and writing.

Today, it is spoken in some offices. He's going to study English hard. and talk with a lot of people in the future.

Week 2 Foundation. Week

Moving As A Child Part 2 Mini-Story Lesson

Adam and Eve. Man Walked with God Man Disobeyed God Man was Sent Away from God God Promised a Savior (Jesus)

Retelling. In the beginning.. Then,... After that,... And then,... Finally,... Do I understand what I read? Does it make sense?

101 IELTS Speaking Part Two Topic cards about sports, hobbies and free time A- Z

Financial Literacy Meeting Ideas Daisy Financial Literacy Games and Activities

LESSONS: 1. Students will listen to It Takes Guts and complete a lyric note- sheet.

Barter vs. Money. Grade One. Overview. Prerequisite Skills. Lesson Objectives. Materials List

Using games to support. Win-Win Math Games. by Marilyn Burns

Deborah, the Judge Lesson Aim: To know God gives us judges.

PREPARE AHEAD OF TIME FOR CRAFTS

First Grade Spelling Words

Playing By Ear Who Can Play By Ear?... 2 How To Play By Ear... 3 Happy Birthday To You (By Ear)... 4 Match Tones... 5 Add Chords...

On Your Marks: Under-5s Day 2 Jesus heals Bartimaeus Mark 10: 46-52

Do Not Worry Lesson Aim: To know God takes care of everything.

Society tells us otherwise. Our broke family and friends tell us otherwise.

LESSON TITLE: Taming the Tongue. THEME: God wants us to watch what we say. SCRIPTURE: James 3:1-12 CHILDREN S DEVOTIONS FOR THE WEEK OF:

homework and revision

The fundamental question in economics is 2. Consumer Preferences

Lesson 2: How to Give Compliments to Tutees

Transcription:

12 LESSON NAME: Song Writing Lesson time: 45 60 Minutes : 5 minutes (With song intros over several days, if possible) Main Goal: Learn how to define and call functions. OVERVIEW: Reading lyrics is a pretty intuitive venture for most students. We ll take an activity that s already common knowledge and shift it into a solid education on defining and calling functions. Once students are familiar with the define/call process, we will add the extra capabilities that come along with passing parameters within those function calls. OBJECTIVE: Students will Learn about defining functions Practice calling functions See the practicality of passing variables as parameters MATERIALS: Paper and pencils for writing songs Printouts of famous children s songs with lyrics that change slightly PREPARATION: If possible, introduce students to the songs in the lesson at least a day ahead of time. Have some song lyrics ready for display, and others printed as handouts. VOCABULARY: Chorus A piece of music that repeats often Function A piece of code that can be called over and over Function Call The piece of a program that sends the computer to a function Function Definition The piece of a program that tells the computer what to do when the code calls a function Parameters Extra information that you can give to a function to customize it Recursive A definition that refers to the word it is trying to define. 1

REVIEW: This review segment is intended to get the class thinking back to the last lesson. If you are covering these activities out of order, please substitute your own review subjects here. Class Participation Questions: What did we do in our last lesson? What is a function? What does it mean to call a function? What is a counter block? Elbow Partner Discussion: In many languages, counter blocks are called for loops. They re called that because you do *something* FOR all values of the counter from the minimum to the maximum. Pretend you have a counter block that keeps track of your age. From age 5 to age 10, you grow two inches a year. From age 11 to age 17, you grow an inch every two years. This requires two blocks. What is the minimum value, maximum value, and add-on amount for each block? We ll take an activity that s already common knowledge and shift it into a solid education on defining and calling functions. 2

INTRODUCE: This lesson works best if you leap right in. Write the following on the board, or project with a document camera. CHORUS: Oh, dear! What can the matter be? Dear, dear! What can the matter be? Oh, dear! What can the matter be? Johnny s so long at the fair. SONG: Chorus He promised to buy me a trinket to please me, And then for a smile, oh, he vowed he would tease me, He promised to buy me a bunch of blue ribbons To tie up my bonnie brown hair. Chorus He promised to bring me a basket of posies, A garland of lilies, a gift of red roses, A little straw hat to set off the blue ribbons That tie up my bonnie brown hair. Chorus Hopefully you ve had the chance to set the stage by listening to this song inconspicuously a time or two before the lesson (probably a difficult task in grades 6+). Let the class know that you re going to sing the song together really quickly. For older kids, you may have to let them know you ll be checking to make sure everyone has sound coming out of their mouths! Sing through the song once, then after the applause (let them be loud and proud about it) slyly point out a fact to them: Oddly, none of you (or very few of you) sang the actual word CHORUS. You didn t say, CHORUS. He promised to buy me a trinket Why is that? Your class may not exactly know why they sang the way they sang. Some may know the song, others may have figured out the technique. This is a great time to point out the terminology of function definition and function call. 3

The second part of this is introducing a song where the chorus lyrics change slightly for each round: CHORUS (sound): With a sound sound here And a sound sound there Here a sound, there a sound Everywhere a sound sound Old MacDonald had a farm SONG: Old MACDONALD had a farm And on his farm he had a cow CHORUS ( Moo ) Old MACDONALD had a farm And on his farm he had a pig CHORUS( Oink ) Old MACDONALD had a farm And on his farm he had a duck CHORUS( Quack ) Go through a few of these verses together, then allow the students to add-on to the song with lyrics about other animals. What would you put in the chorus parentheses for a dog? A cat? Hopefully they will intuitively know what happens with the sounds that they provide, but if they aren t making a connection between passing a word in through the parentheses and calling that word inside the definition of the chorus, show them explicitly by using one finger to indicate which sound you are using, and another to trace where you are in the chorus. Your students probably won t have realized it, but they have just learned how to pass a parameter to a function! Point that out in so many words, and show them that this is exactly how programmers share bits of information with functions that they have written. You can 4

pass certain values into a function, so that the function can use the information with the code inside. The function will just replace the reserved word (which, in our song, it created in the form of the variable sound) with whatever word you gave it inside the parentheses. Let s test that newfound knowledge: CHORUS (thing, place, did): Cause I stuck a thing in a hole in the place and it did, and did, and did. SONG: I m going to be the most famous kid, because of the thing that I just did. CHORUS( seed, ground, grew ) I m going to be the most famous kid, because of the thing that I just did. CHORUS( plug, boat, floats ) I m going to be the most famous kid, because of the thing that I just did. CHORUS( head, sky, flies ) Now, this song is completely made up. It s here to give an opportunity to the class to figure out what happens when you pass more than one parameter to a function. Feel free to use it, making up your own tune, or recreate the song altogether with three different opportunities for variables in the chorus. When the students are able to sing through the song, understanding which variable goes where, break them into groups and have them figure out how to rewrite other children s songs: 1) Five Little Monkeys Most Simple 2) Farmer in the Dell Tougher 3) Hickory Dickory Dock More Complicated After the students have had a while to work, bring them together to share their results. How many people did it the same way? How many had different solutions? ADJUSTMENTS: K-2: This works well as an entire class. If the kiddos have trouble reading, you may need to go through and point out the word Chorus and show them what that looks like. If your class is very young, it may be worth it to add pictures to the songs as cue points. Listen to the songs several times in the days prior to the class so that they intuitively understand the flow of the music. 3-5: Try staying in a group until after the Old MacDonald piece. For the initial song, explicitly go over the chorus with the class before you start the lesson. You may want to play the song for the class the day prior. 5

6-8: The class can separate into groups right after the initial explanation of function definition and function call. Let the groups blast through the Old MacDonald program, and begin creating their own songs. Encourage to use (appropriate) songs from the radio if they can think of any that have lyrics that change. Extra time: If you find you have extra time, write The Song that Doesn t End on the board, entirely under CHORUS. The last line of the chorus should be CHORUS. Have the class sing through it for a while, then introduce what it means for a function to be recursive. 6