Thursday, June 25, 2015

Day Two: I'm thinking of a number...

For day two, students continued writing short programs.

Because we had one Raspberry Pi for every four students, we used a concept called Paired Programming.




First, students worked with variables, setting the value of the words "spam," "bacon," and "eggs." We learned that any words can have values set to them.

Students worked in their groups to write a program that would ask for the user's name, greet them, and let them play a "guess the number" game.

DAY TWO CONCEPTS:
  • variables: words that can vary -- the meaning can be set by the programmer
  • integers (int): whole number value
  • #: (we called this a sharp instead of a hashtag) this lets the programmer write notes about the program -- it lets the computer know that what follows is not code

No comments:

Post a Comment