Return to Video

Unplugged Activity: Songwriting with Parameters

  • 0:13 - 0:16
    This lesson is called songwriting with parameters.
  • 0:16 - 0:18
    We're going to be writing some songs here.
  • 0:18 - 0:22
    Sometimes the chorus is just a little bit
    different each time you sing it.
  • 0:22 - 0:25
    Do you remember Old Macdonald Had a Farm?
  • 0:25 - 0:27
    The chorus is slightly different for each
    animal.
  • 0:27 - 0:33
    And on that farm, he had a cow, e-i-e-i-o.
  • 0:33 - 0:40
    The small change in each chorus can be shown
    using something we call parameters.
  • 0:40 - 0:42
    Sometimes a function needs a parameter.
  • 0:42 - 0:47
    A parameter is an extra piece of information
    you can pass to a function to customize it
  • 0:47 - 0:49
    for a special need.
  • 0:49 - 0:54
    When you make ice cream sundaes with your
    friends, you are using a process similar to
  • 0:54 - 0:57
    parameters in a computer program.
  • 0:57 - 1:01
    The disk of vanilla ice cream might be the
    same for every sundae but when you ask your
  • 1:01 - 1:06
    friends which two toppings they'd like, you
    could get lots of different combinations.
  • 1:06 - 1:11
    Topping is the function name but each type
    of topping is a parameter.
  • 1:11 - 1:16
    Functions and parameters work together to
    make great computer programs and great sundaes
  • 1:16 - 1:16
    too.
Title:
Unplugged Activity: Songwriting with Parameters
Description:

more » « less
Video Language:
English
Duration:
01:18

English subtitles

Revisions