470 likes | 558 Views
Programming Logic Class in Emergency Mode. Why emergency mode?. Why emergency mode?. Why emergency mode?. Why emergency mode?. Why emergency mode?. Why emergency mode?. Why emergency mode?. Should you tell?. Should you complain?. On the first day.
E N D
On the first day • What do you think this course will be about? • What are your career goals? • What have you liked about homework/tests/grading procedures in other classes? What have you hated? • Give a pretest • Tour the lab
On later days • What do you like so far? • Hate so far? • What do you not understand? • Grade each others’ homework • Make up some test questions • Have a guest speaker
On later days • Bonus quiz • End-of-chapter questions • Old test bank • Play hangman with vocabulary • Create a puzzle • http://www.armoredpenguin.com/crossword/ • http://www.puzzle-maker.com/
Activity – Following instructions • Near the top right side draw two triangles that touch at the top like an hourglass. • Near the bottom left draw a triangle that points up. • Draw a circle on top of it. • Next to the circle, draw two rectangles, one more to the side than the other. • Over those, draw a circle to the left. • Draw two more circles near the bottom corners of the two rectangles.
Activity – Discovering language rules • Have students examine a program and try to come up with 10 rules of the language • Discuss rules as opposed to conventions • Do this multiple times during the semester • Compare multiple languages
Activity - Black box testing • Have students run a black box test • TestProgram.cs • TestProgram.exe
Activity - Swapping algorithms • Using a temporary variable
Activity - Swapping algorithms • Using a temporary variable
Activity - Swapping algorithms • Using a temporary variable
Activity - Swapping algorithms • Using a temporary variable
Activity - Swapping algorithms • Using a temporary variable
Activity - Swapping algorithms • Without using a temporary variable
Activity - Swapping algorithms • Without using a temporary variable
Activity - Swapping algorithms • Without using a temporary variable
Activity - Swapping algorithms • Without using a temporary variable
Activity - Swapping algorithms • Without using a temporary variable
Activity - Random Numbers • Have students try to fool you by generating a list of coin toss results • RandomNumberGenerator.cs • RandomNumberGenerator.exe • Discuss implications for applications like iTunes, game playing, and so on
Activity - Storage principles • MathMistake.exe • MathMistake.cs
Activity - Game algorithms • 21 • Nim • http://www.archimedes-lab.org/game_nim/play_nim_game.html • Scratch Pad for Nim.docx