You are on page 1of 7

Computer Programming Lesson Plans Note,

Page 1

Because I had to leave early in the summer, the lab will need set up. The janitors will have pulled the tables out into the main classroom and have cleaned the carpet. The tables may or may not be in the original locations. The empty tables should all be along the east wall of the room, and the tables with the machines on them go along the west wall, with the exception of the table that has the computer with the clear plastic on the front, it goes on the east wall under the center set of cabinet doors. The computers that are on the shelves above the tables on the east wall, are still plugged in. Just carefully take the mice and keyboard off of the shelf and place them on the table, than after that carefully pull the monitors down and place them behind each keyboard on the table. Check to see if the power cords that are hanging down are plugged into power or a power strip. There are power strips on the shelves on the east wall toward the desk I think. Setting up the computers that are on the tables will be similar, just pull the keyboards, mice and monitors around into the proper position. Of course you will need to plug a network cable into the rear of each computer especially on the west wall. Wednesday, August 31, 2011 Introduction to Class This lesson will introduce the student to the computer programming class, the syllabus, and the classroom rules and expectations. Handouts Computer Programming Syllabus Keep your Head in the Game Distribute Classroom Rules and Expectations handout. Go over each item on the handout with the class. Stress the importance of NO FOOD OR DRINK NO HEADPHONES OR MP3 players Introduce the student to the programming log-in in to the desktop of the workstation. Make sure that they log out of the Windows workstation and log in as program, with the password skunk. If booting up the computer for the first time, choose the program user from the list of users and log in with the password skunk. If the machine is already on, have them log out with the start menu, then back in as program.

Computer Programming Lesson Plans

Page 2

The document Teaching Computer Programming to HS Students available online at http://oroville.wednet.edu/~Ed/resources/. This is the current document that you will use to teach this class. There is also a shortcut to the program DevC++. Do not allow them to mess around with the program DevC++ yet. Thursday, September 1, 2011 Basic History and Vocabulary Requires 3 x 5 cards for each Student Have the Students study pages 2 through 7 of Teaching Computer Programming to HS students. Do the Exercise on Page 3, and produce the documents requested. Along with this exercise, dedicate a portion of the class period to the following; Have the students group into teams of 3 and prepare 3 x 5 cards with the following: Place a vocabulary item on one side of a card, and a summary of the definition of the item on the other side. Each team should have a complete set of cards generated, with one card for each Historical Contributor and each Vocab Item. Collect the cards at the end of class. Friday, September 2, 2011 Finish Preparing the Cards if not complete. Each team should shuffle the cards created the previous day, and place the cards with the answers down, in a stack. They should take turns drawing a card, and attempt to give the answer without looking at the back of the card. Do 10 complete rounds, with each student giving the definition of 10 different items to the group. If a student misses an item they must read the item and complete definition from the Study Document to the group. Tuesday, September 6, 2011 Game of Flash Trivia The instructor will gather all of the cards, and shuffle them together in a single pile. Each student will be asked to stand, and the instructor will pull a card from the stack and ask the student to give the definition. The instructor will record if the student got the right answer or not, and ask the student to sit down, and then ask the next student to stand. This process will continue, if a student gets three wrong, they are out of the game. Continue until only one student remains. He or she is the winner.

Computer Programming Lesson Plans

Page 3

Wednesday, September 7, 2011 Opening the DevC++ program and creating Projects. View the Intro to DevC++ Video with the class. Read through pages 8 through 18 of the new Teaching Computer Programming to HS students. They should follow along with the text as well, to produce a simple running console app. They may have to do some debugging (pages 16 18) to get the program to run, but if they have trouble, help them compare the code on page 15 to the code that they have written in the main.cpp file. Thursday , September 8, 2011 Continue and Debug Continue with previous lesson until all students have a running program that produces the output on page 16. Friday September 9, 2011 Basic Code Modification Do the exercise on page 19, this will reinforce creating a new project, saving it, typing in code, modifying the code and debugging. Make sure that all students have a running program as defined in the exercise when complete. Monday, September 12, 2011 Basic Program Structure (Bits) Read through pages 19 through 26. This is complicated reading, so it is important that the students understand all of the concepts contained here. When the reading is done, lead the class in a discussion on how to convert integer values to bits. If they cannot answer and explain it, have them read through the text again. They can use the paper at the south end of the classroom to explain. Convert with the class 00101110 11111110 01010101 10000000 Tuesday , September 13, 2011 Identifying Program Structure with commented code Do the exercise page 26-27

Computer Programming Lesson Plans

Page 4

Wednesday, September 14, 2011 Main Routine and Variables Read through pages 27 through the very top of page 30. After giving them time to read through this, ask the class the following questions and work through the answers as a class. How what is the biggest number a bool or char can hold? How big of a number can a Short Integer hold? What is different about a floating point variable? How could you tell how large of a number a double could hold? What type of variable would you use to hold Hey there howahya? Thursday, September 15, 2011 Follow along with the instructions on pages 30 -31, creating the variables1 project and compiling and debugging the code. You will be creating a new source file (mycode.h) just like I did in the video. If you have to, show the class the video any time you need to help them set up a project and add source files. Friday, September 16, 2011 Arrays Strings and Input/Output Read through pages 32 through 35. Do the Exercise on the end of page 35, producing a running program named input1 Monday, September 19, 2011 Loose Ends Finish up any code that the students do not have running today. Encourage students that are getting it done to help any that are struggling. The rest of the day is yours. Tuesday, September 20, 2011 Getting lines of text from the user with strings Read through Pages 36 through 38. Create a console project called getline, and type the code in on page 36. Compile, Debug and run the program. Exercise 1. Create a console project called pointers, and type in the pointer code on page 37, Debug and run the program. Wednesday, September 21, 2011 String Functions

Computer Programming Lesson Plans

Page 5

Finish programs from previous day. Then create a new console project called stringfunct. Type the code on page 38 Thursday, September 22, 2011 Your First Real Program!! You have learned if you were paying attention, how to declare variables, get information from the user in the form of numbers, characters and strings, and how to manipulate strings with a couple of cool functions. Now it is time to prove it by designing your first real program . Do the exercise on page 38. This should take about three days to complete. Compile Debug and run your program. Friday, September 23, 2011 Continue Monday, September 26, 2011 Continue Tuesday, September 27, 2011 Continue Wednesday, September 28, 2011 Conditional Statements Read through page 39, and right away, create a project for the simple program on page 39. Call it ifstatement. The if statement is probably the most important statement in computer programming. It allows you to make decisions. Modify the code so that you are doing something else maybe asking for something different other than your age (you may want to change the variable name) and then do something different based on the value of the number. Also, between the ifs, you can put in other ifs.. like this if (bananacount <= 10) if (grapefruitcount > 5) cout << ''That is still a lot of fruit''; else cout <<''you better get some more fruit for your trip''; else cout <<''you have plenty of bananas!''; Have fun with the if statement, see what you can do today. Practice Practice!! Thursday, September 29, 2011 Flow Control Continue reading through page 41, do the exercise on page 41. Make sure ALL COMMENTS are typed into the program.

Computer Programming Lesson Plans Friday, September 30, 2011 Continue with previous lesson Monday , October 3, 2011 The For Loop (ASCII code) Read from the bottom of page 41 through the bottom of page 45. Do Exercise 1 and 2. Tuesday , October 4, 2011 Continue

Page 6

Wednesday, October 5, 2011 Code Modification Do Exercise 3 from page 45. This will be a fun one!! Look at your last code until you understand it, then this will be a snap. Thursday , October 6, 2011 Continue Monday , October 10 , 2011 Continue Tuesday , October 11, 2011 Subroutines Read through pages 46 to 47, Do Exercise 1 Wednesday, October 12, 2011 Continue Thursday, October 13, 2011 Code Modification Do exercise 2 from page 47 Monday, October 17, 2011 Adding additional Subroutines Do Exercise 3 from page 47. You are really learning now! If you can accomplish this, you can accomplish anything. Could you choose IF you wanted to add or subtract by getting a char from the user? I bet you could. Tuesday, October 18, 2011 Continue Wednesday, October 19, 2011 Continue

Computer Programming Lesson Plans Thursday October 20, 2011 Event Loops Continue reading through page 50. Do the exercise on page 50 Friday, October 21, 2011 Continue Monday, October 24, 2011 Continue

Page 7

Tuesday, October 25, 2011 Operators Read through the Operators section on Pages 50 52. Try to imagine ways that you could use each operator listed. Use this section as a reference when you write your code. Structures Continue reading from the bottom of page 50 to 53. This will let you work with structured variables. Create a new console project called structures. Type in the code from page 53, then modify it as defined in the exercise on page 54. Wednesday, October 26, 2011 Files Create a project called files, and type in, compile and run the program on pages 55 and 56. Thursday, October 27, 2011 To reinforce the console skills that you have learned, I have created a little card game for you to type in, debug and run. It summarizes most of the concepts that you have learned so far. Type in the Just for Fun code on pages 57 60.

You might also like