Thursday, June 25, 2015

Day Three: Flowcharts & Word Lists

Once we had two days of coding behind us, students began work on a difficult program: Hangman.

We played "old school" Hangman first, then analyzed the process and wrote a flowchart.


It looks like a butterfly! :-)

Once students understood what the program had to do, we started writing code...

But first, we learned how to create ASCII pictures. Students were challenged to make a picture of a frog using only the letters, numbers, and characters on their keyboards.

ASCII frog completed!

DAY THREE CONCEPTS:
  • while loops: execute code as long as a certain condition is met
  • if loops: execute code once if a certain condition is met
  • else: executes code if the "if" condition is not met
  • break: breaks a loop
  • length (len): counts the length of an item (word, series of number)

No comments:

Post a Comment