Lesson 1: Bagel Programming


Introduction

When it comes to the world of programming and coding, one of the most difficult things for new students to grasp is that computers, computer systems or computer programs can be frustratingly literal. This programming exercise introduces students to the necessity for thoroughness while programming and will introduce the strange results of "literalism".

The ability to "read between the lines" and determine what was meant rather that what was said is a skill computers and computer programs lack.

The theme is that computers do what they are told to do...and nothing more! (Mr. Lee's Rule #4).

Bagel Program Materials

Materials Needed:

  • Whole, un-sliced, uncut bagels in a closed box or bag
  • One tub of reduced-fat, plain cream cheese (new or already opened)
  • One cutting or slicing knife (serrated)
  • One spreading or butter knife (non-serrated)
  • One plate
  • Napkins

 

The finished "Bagel Program" should look like this.

The finished "Bagel Program" should look like this.

 

The Bagel Program

Will the following program work?
  1. Take a bagel
  2. Slice the bagel in half
  3. Put cream cheese on one slice of the bagel
  4. Put cream cheese on the other slice of the bagel
  5. Press the slices back together

 

Answer: Nope!

 

Create the Bagel Program
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.