QT1

=Period 8 Computer Programming II in C++=

First Marking Period
Do Now: ** Finish work from yesterday. Objective: Insert bad data while loops in existing programs. Program: **Travel.cpp** Program: **Circle2.cpp** Program: **TriArea.cpp** Program: **RectArea.cpp**
 * Friday & Monday 11/6,9/09
 * Assignment: **
 * Directions are in your white notebook.**

Do Now: ** Go over Divide.cpp **Assignment:** Read pages 46 - 50 Using while Loops Using do Loops Program: **PlayAgain.cpp** P. 47 Program: **PlayAgain2.cpp** P. 49
 * Thursday 11/5/09

Finish back work!
 * Wednesday 11/4/09

Thursday 10/29/09** **Do Now: **  Draw a flowchart for the Divide.cpp program which will output the quotient or an undefined message. Start with Blank.cpp Program: **Divide**.**cpp** Use an if else structure. The beginning of the output might look like this. **Do Now:** What is acceptable input for the numerator of a fraction? What is unacceptable input for the dividend in a division problem? What is acceptable input for the denominator of a fraction? What is unacceptable input for the divisor in a division problem? Even when using integers for the numerator and denominator, the more accurate quotient may be what type of number? The flowchart below can be written in C++ code as what type of structure?
 * Wednesday and Thursday 10/28, 29/09**



**Assignment:** Read pages 40 to 43 in the Dawson paper back book. Start with Blank.cpp Program: **ScoreRater2.cpp** P. 42 Program: **Divide**.cpp Use an if else structure. The beginning of the output might look like this.

Save and upload to your Gaggle digital locker.
 * Ticket out Door: **

Do Now: ** <span style="font-family: Arial,Helvetica,sans-serif;"> Show Miss Hangen your Ch1Discussion Exercises.doc
 * Tuesday 10/27/09

Go over necessary problems with the class. <span style="font-family: 'Comic Sans MS',cursive;"> Read pages 35 - 40 in the Dawson paper back book. Program: **ScoreRater.cpp** P. 37
 * <span style="font-family: 'Comic Sans MS',cursive;">Class Activity: **
 * Assignment:**

Save and upload to your Gaggle digital locker.
 * <span style="font-family: 'Comic Sans MS',cursive;">Ticket out Door: **

**Monday 10/26/09**

<span style="font-family: Arial,Helvetica,sans-serif;"> Open your Ch1DiscussionExercises.doc Mark the problems that you need to discuss for clarity.
 * <span style="font-family: 'Comic Sans MS',cursive;">Do Now: **

Go over necessary problems with the class. Assignment: ** Write, compile, and run a program for Exercises 2 and 3 on page 33. Filename: Ch1Ex2_3.cpp Copy and paste the source code and the output into your Word document.
 * <span style="font-family: 'Comic Sans MS',cursive;">Class Activity: **
 * <span style="font-family: 'Comic Sans MS',cursive;">

Save and upload to your Gaggle digital locker.
 * <span style="font-family: 'Comic Sans MS',cursive;">Ticket out Door: **


 * Thursday and Friday 10/22, 23/09

<span style="font-family: 'Comic Sans MS',cursive;">Do Now: ** Read pages 30 to 32 in the Dawson paper back textbook. <span style="font-family: 'Comic Sans MS',cursive;"> Save this document to your desktop. Include your name in the header. <span style="font-family: Arial; font-size: 12pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US;">Read the questions. Look back through the book and discuss with other students. Then answer the questions in the textboxes. Save and upload to your Gaggle digital locker.
 * Assignment:**

Write a constant declaration in which pi is set to 3.14159.
 * Wednesday October 21, 2009**
 * <span style="font-family: 'Comic Sans MS',cursive;">Do Now: **

Start with Blank.cpp Program: **Add.cpp** ** You may use your resources to help you **. Program: **Multiply.cpp** ** No programs or resources are allowed. ** More directions in your notebook.
 * <span style="font-family: 'Comic Sans MS',cursive;">Class Activity: **

Was doing the Multiply.cpp program more difficult for you? Why?
 * <span style="font-family: 'Comic Sans MS',cursive;">Ticket out Door: **

Create Word Art for these vocabulary words that we will put on the wall. Make the paper landscape.
 * Input || Output || Declaration || Variable || Constant || namespace || Directive || Consistent ||
 * Order of Operations || Assignment Statement || Compiler || float || int || iostream || using || Depreciation ||
 * char || const || Source Code || Execute || Syntax || Parameter || Expression || Integer ||
 * Runtime Error || Logic || Curly Braces || Block of Code || Data Type || Argument || Evaluate || Quadratic ||
 * Exponential Notation || Initialize || Default || Identifier || Separators || Prefix || Boolean || ASCII Codes ||
 * Standard Library || Comments || Function || Body || Operator || Objects || Documentation || Increment ||
 * Decrement || Enumerators || Value || Stream || Delimiter || Prompt || Loop || Array ||

<span style="color: #000000; font-family: 'Comic Sans MS',cursive;">**Do Now: media type="custom" key="4608848"
 * Tuesday October 20, 2009**

Class Activity:** Finish going over **Ch. 4 Variables and Constants Questions** Program: **Character.cpp**

Finish Complete.cpp Finish Analyze.cpp
 * Open Blank.cpp from Gaggle digital locker and save it to the desktop with the filename Character.cpp.
 * Change all occurrences of the word blank to character and fill in the proper documentation.
 * //**Next to assignment write a short blurb about the point of the assignment.**//
 * Declare a character variable in the declaration section.
 * In the main program section, use an assignment statement to initialize the character variable to a letter of your choice.
 * Output the letter.
 * Write code to
 * prompt the user to enter a letter
 * accept the letter as input
 * output a sentence telling what the letter is
 * Test data:
 * R
 * What will show up?
 * 678
 * Have Miss Hangen check your Character.cpp program when you are done.

To use correct syntax and conventions for constant declarations. To use data types that use the least amount of memory space as possible for variable declarations.
 * Monday October 19, 2009**
 * Objectives:** To distinguish between character data types and integer data types.

Go over **Ch. 4 Variables and Constants Questions**
 * <span style="color: #000000; font-family: 'Comic Sans MS',cursive;">Class Activity: **

Friday October 16, 2009 **<span style="font-family: 'Comic Sans MS',cursive;">Assignment: ** Programs: **Complete.cpp**
 * Analyze.cpp**


 * Thursday October 15, 2009**
 * Objectives:**


 * **Declare and use different variable types correctly.**
 * ** Define and use constants correctly in appropriate situations. **

**<span style="font-family: 'Comic Sans MS',cursive;">Assignment: ** Paper and Pencil: **Ch. 4 Variables and Constants Questions

<span style="font-family: 'Comic Sans MS',cursive;">Ticket out Door: ** Hand the finished papers to Miss Hangen.

<span style="font-family: 'Comic Sans MS',cursive;"> **Topic:** Declaring and initializing variables and constants Program: **AssignCV.cpp** in notebook Program: **Proj4Two.cpp** Directions are in the notebook and the green and gold textbook page 68 project 4-2. How many keywords are in a constant declaration? Describe what they are and why they are necessary.
 * Tuesday October 13, 2009**
 * Do Now:**
 * <span style="font-family: 'Comic Sans MS',cursive;">Assignment: **
 * <span style="font-family: 'Comic Sans MS',cursive;">Ticket out Door: **

Add the missing symbols and keywords. Debug Read page 27 - 28
 * Monday Oct 12, 2009**
 * Program:** **YourAge.cpp**
 * Program:** LostFortune.cpp

With a partner make sure all of your answer to the returned papers are correct. Have your digital locker open for me to check programs with you. Program: **YourAge.cpp** Add the missing symbols and keywords. Debug
 * Friday Oct 9, 2009**

<span style="font-family: 'Comic Sans MS',cursive;">Do Now: ** Chapter 4 Summary Questions This is in your notebook. Refer to page 66 in the green and gold textbook. Trade places with another student to check each others program using the picture on page 3 of the directions. Discuss with each other what needs to be fixed, and make the corrections.
 * Thursday Oct 8, 2009**
 * <span style="color: #800080; font-family: 'Lucida Console',Monaco,monospace;">//Open your Gaggle digital locker so I can check some work while you are doing the summary questions.//
 * <span style="font-family: 'Comic Sans MS',cursive;">Program: ** DataType.cpp (directions in white notebook)
 * <span style="font-family: 'Comic Sans MS',cursive;">Ticket out Door: **

1. Read pages 60 to 64 in the green and gold textbook. 2. Answer questions 1 - 5 on handout (Make sure to put your name on the top. I forgot to put a line for it.) 3. Read pages 64 - 66 4. Answer questions 1 - 5 on handout. Directions in notebook
 * Wednesday Oct 7, 2009 **
 * Chapter 4 Section 4.2 Using Variables**
 * Chapter 4 Section 4.3 Constants**
 * Program:** Circle1.cpp

Program:** IDeclare.cpp Follow the directions in your notebook.
 * Tuesday Oct 6, 2009

Do Now:** Create the **Blank.cpp** template to use other programs. Use the Blank.cpp template and change the occurences of Blank.cpp to Travel.cpp. Adjust other appropriate details. Enter the code for Travel.cpp Debug
 * Monday Oct 5, 2009
 * Assignment Program: Travel.cpp**
 * Ticket out Door:** Upload programs to your Gaggle digital locker

Beginning:** White notebook Program: **Input.cpp** and questions 1 to 6 White notebook (Refer to the Dawson textbook and the green and gold textbook as necessary.) Ch. 3 Entering, Compiling, and Running a Program Questions P. 1 - 3 What do you have the most trouble with so far in this class?
 * Thursday & Friday Oct 1 & 2, 2009
 * Middle:**
 * End:** Last question on page 3
 * Ticket out Door:** Hand in finished papers with questions on them.

Do Now:** Read pages 22 to 25.
 * Wednesday Sept 30, 2009
 * Program:** GameStat3.cpp P. 26
 * Ticket out Door:** Read pages 26 to 27

Tuesday Sept 29, 2009 media type="custom" key="4467509" Why do we need a short cut for **count = count + 1;** ? We will look at the ++ operator together. Look at IncDec.cpp and GameStat2.cpp
 * Do Now:**
 * Class Topic:**

Read** pages 15 to 21
 * Friday and Monday Sept 25 and 28, 2009
 * Program:** GameStates2.cpp

Do Now:** Read pages 12 - 14
 * Thursday Sept 24, 2009
 * Program:** GameStats.cpp (save to desktop and upload to gaggle digital locker)
 * Read:** pages 14 to 18
 * Ticket out Door:** Stack books in the corner

Read:** pages 3 to 12
 * Wednesday Sept 23, 2009
 * Program:** ExpensiveCalculator.cpp

Help each other finish TriArea.cpp Read P. 1 and 2 of text.
 * Tuesday Sept 22, 2009**

**<span style="font-family: 'Comic Sans MS',cursive;">Monday September 21, 2009 **
Add a bad data while loop to catch bad data for the width of a rectangle in the RectArea.cpp program. Write a program to calculate the area of a triangle when the user provides base and height in the correct units. Your output should look something like this. Start a MS Word document called DoNow&Reflection.doc. Include the ticket out the door for today, in which you reflect on what you learned on Friday and today?
 * Do Now:**
 * Assignment:**
 * TriArea.cpp **
 * Ticket out Door:**

**Friday September 18, 2009**
Open your RectArea.cpp program Trade seats so that everyone is at a different persons computer. On paper, evaluate the source code file. Also on the paper, evaluate the executed program. On the back of the paper, write which program you think is better, your own or the one you evaluated. Explain why? Turn the paper into Miss Hangen
 * Do Now:**
 * Documentation
 * Readability
 * Correctness
 * What was good about it?
 * What could be improved?
 * Readablility
 * Correctness
 * Overall Quality
 * What was good about it?
 * What could be improved?

Bad Data While Loop
 * Class Lesson:**

Thursday September 17, 2009
Using your HelloWorld.cpp program as a guide, write a program to calculate the area of a rectangle. Use appropriate documentation. Use appropriate prompts and output of results. Use meaningful variable names. Save the file as RectArea.cpp on the desktop and upload it to your gaggle locker. After you are finished, pair up with another student and test each others programs.