4. Apply Programming Concepts to Items
In this video, you will choose one technologyexample and one creative example from your lists.
Then, you will imagine how each coding concept might work with an item from your list in the same way it works in a computer program.
You will create a slide presentation that shows how each programming concept applies to your items.
Don’t be afraid to use your imagination and have fun!
There are no right or wrong answers for this activity.
Think about how concepts that are usually only associated with computer science could relate to something you see or use every day.
Applying programming concepts to the world around you will help you understand them.
Then, you will be able to use those concepts to create your Auto Editor program.
The first concept is Sequencing.
Computer programs perform steps or sets of instructions in a specific order.
You might apply sequencing to an item in nature, like a waterfall.
Snow from the mountains melts and turns into water.
The water runs downhill, then over rocks, and finally creates a huge waterfall.
The next concept is a Conditional.
A conditional is an “if/then” statement.
It makes something happen if a certain condition is met.
For example, if the weather is above freezing, then the snow from the mountain melts.
A Loop is when code repeats a sequence of actions over and over again.
In the waterfall example, snow falls in the mountains.
Then, the sun comes out, the snow melts and it turns to water.
The water runs downhill, and the waterfall is created.
When more snow falls and melts, the whole process repeats.
A Variable stores a value for a program to use.
For example, a waterfall wears down rocks as it falls on them over time.
Over the years, the rocks get smaller and smaller.
The size of the rock could be stored as a variable.
An Array holds multiple values for a program to use later.
In the waterfall example, the mountains hold a certain amount of snow.
These snowy peaks are like an array because they each hold different values, or amounts of snow.
Those values determine how big the waterfall will be.
Programs also use Functions with Parameters.
A function is a block of code that contains a series of instructions.
Programs can “call” functions to perform a specific task.
Functions use values called “parameters.”
Changing the parameters in a function changes the result of the program.
For example, a function might be the sun shining, the air temperature getting warmer, and the snow melting to create the waterfall.
The parameters are the sunlight and the amount of snowfall.
If the weather stays cold and not as much snow falls, the waterfall will be smaller.
Whereas if the weather gets warmer and there is a lot of snow the waterfall will be bigger.
Changing the parameters--the sunlight, temperature, and snowfall--changes the end result.
If the sun shines more and melts more snow, the waterfall will get bigger.
If no snow falls in the mountains, the waterfall will dry up.
A waterfall is just an example of how you can apply programming concepts to everyday life.
Next, you will write about how the six programming terms work with the items you and your partner listed in the presentation.
To start, gather with your partner at one computer to discuss how these six programming concepts might apply to items from your technology and creative lists.
Then, choose one item from each list.
Type the name of the item in the appropriate title box in the presentation.
Work together to fill in the boxes next to each programming concept in your Google Slides presentation.
Think creatively about how each of these concepts might work for the item you chose.
Once you and your partner have filled in the entire presentation, move on to the next video to share your presentation with another group.
Now, it’s your turn: Gather with your partner at one computer.
Choose one item from your technology list and one from the creative list.
Apply the six programming concepts to each of your two items.
Fill out the boxes in the slide presentation.
Then, move on to the next video to share your presentation with another set of partners.
- Gather with your partner at one computer.
- Choose one item from the mechanical or electronic list and one from the creative or unusual list.
- Explain how the six programming concepts work with each item.
- Fill out the boxes in the slide presentation.