CPP

=C++ Period 8=  **Assignments:** Continue through notebook
 * Monday June 8, 2009**

Final Exam
 * Friday June 5, 2009

June 2009** **Assignments:** Continue through notebook

====**//This class is 1 hour and 55 minutes long. You will have plenty of time to complete several programs and assignments to prepare for your final exam. Use this time wisely.// **====
 * Monday June 1, 2009**
 * Notice the new pages in the back of your notebook!!!!!!! **
 * Program**: Circumfr.cpp
 * Assignment:** Questions on Ch. 6 Strings and Screen Input/Output
 * Reading:** Switch Structure Notes & Chapter 7 Summary
 * Assignment:** Questions on Switch Structure Notes Ch. 7 Summary

Final Exam Schedule

Do Now:** Explain what flushing the input stream means, why it is necessary and how it is done in a C++ program, by using the blog, []
 * Thursday May 28, 2009
 * Program**: Address.cpp

Do Now:** Explain why and when it is necessary to use cin.get in a C++ program by going to the blog, []
 * Wednesday May 27, 2009
 * Program**: Address.cpp

Read the explanation on **//Flushing the Input Stream//** on page 2 of the handout. media type="custom" key="3817703"
 * Friday & Tuesday May 22 & 26, 2009 **
 * Do Now:** Read cin.get & cin.ignore
 * Assignment:** Fill out the paper following the direction part way down the cin.get & cin.ignore paper.
 * Program**: InLine.cpp

Do Now:** Read Pages 92 - 96 in the textbook.
 * Monday - Thursday May 18 - 21 2009
 * Programs:** Strings.cpp, Betsy.cpp, Hello.cpp

**Program:** TaxTotal.cpp (directions are in your notebook)
 * Friday - Friday May 8 - 15, 2009**
 * TAXTOTAL MUST BE FINISHED TODAY!!!!!! **

**Do Now:** Read your Gaggle email from Miss Hangen and reply to it. Your reply during 8th period class will be used to take attendance.
 * Thursday May 7, 2009**
 * Program:** TaxTotal.cpp (directions are in your notebook)
 * Ticket out Door:** Upload TaxTotal.cpp to your Gaggle digital locker.

**Program:** SetW.cpp and finish other programs
 * Tuesday & Wednesday May 5 & 6, 2009**

**Do Now:** Read iomanip.h and setprecision notes
 * Monday May 4, 2009**
 * Class Discussion:** How to use setprecision
 * Program:** SetW.cpp

Program: ** CoutSetF.cpp
 * Friday May 1, 2009
 * Ticket out Door:** Upload CoutSetF.cpp to your Gaggle digital locker.

<span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:** Simplify these 3 expressions without a calculator and showing your work on the paper.
 * Thursday April 30, 2009**

3 + 16 - 5 19 - 5 CoutSetF.cpp Upload CoutSetF.cpp to your Gaggle digital locker.
 * = Ex. 1 + 8 / 4 + 2 * 8 - 5 ||= 2 + 6 / 3 + 1 * 6 - 7 ||= (2 + 6) / (3 + 1) * 6 - 7 ||= (2 + 6) / (3 + 1 )* (6 - 7) ||
 * = 1 + 2 + 16 - 5
 * 14** ||  ||   ||   ||   ||
 * Programs:** Paren.cpp
 * Ticket out Door:** Upload Paren.cpp to your Gaggle digital locker.

<span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:** Write 3 lines in 5 minutes on what your program does.
 * Wednesday April 29, 2009**
 * Programs:** Finish MyOwn.cpp
 * Ticket out Door:** Upload MyOwn.cpp to your Gaggle digital locker.

<span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:** Finish Weather.cpp
 * Tuesday April 28, 2009**
 * Programs:** MyOwn.cpp
 * Ticket out Door:** Upload MyOwn.cpp to your Gaggle digital locker.

<span style="font-family: Arial, Helvetica, sans-serif;">**Programs:** Cereal.cpp and Weather.cpp
 * Monday April 27, 2009**
 * Ticket out Door:** Upload Cereal and Weather to your Gaggle digital locker.

<span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:**
 * Friday April 24, 2009**


 * 1) Read the Typecasting and Truncation Notes.
 * 2) Describe typecasting in your own words and type your description in a Word document.
 * 3) Read your description to your partner.
 * 4) Listen to your partner read his description.
 * 5) Discuss any adjustments needed to your descriptions.
 * 6) Type the better description into a comment in your Remain.cpp program.


 * Programming Assignment:** Use the directions and output sheet for Remain.cpp to modify your program to include the additional requirements.
 * Ticket out Door:** Show Miss Hangen your progress and upload Remain.cpp to your Gaggle digital locker.

<span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:** Open your Continue.cpp template and change it for the new program Remain.cpp.
 * Thursday April 23, 2009**
 * Assignment:** Code the program Remain.cpp according to your plan.
 * Ticket out Door:** Show Miss Hangen your progress and upload Remain.cpp to your Gaggle digital locker.

<span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:** Divde these numbers and give the answers as an integers and an integer remainders. Do the work on paper then enter your answers on the google form. 1. 123/21 2. 0/7 3. 444/11 4. 195/39 5. 21/0 6. 8/0 7. 7/99 8. 45/15 Remainder Do Now and Ticket out the Door
 * Tuesday & Wednesday April 21 & 22, 2009**
 * Assignment:** Work together to plan a program that will divide integers and output the answer as an integer and a remainder.
 * Ticket out Door:** Describe what structures and functions your program will need to meet your plan. Put your answer on the google form.

Use this link for the Do Now and the Ticket out the Door for today. <span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:** 1. Give an example of an if statement without an else. 2. Give an example of an if else structure.
 * Monday April 20, 2009**
 * Assignment:** Finish if else Activities with Examples
 * Ticket out Door:** Explain some differences between the usage of a while loop and an if else structure.

<span style="font-family: Arial, Helvetica, sans-serif;">Assignment: **<span style="font-family: Arial, Helvetica, sans-serif;"> if else Activities with Examples
 * Friday April 17, 2009

Do Now:** Explain where in the program the bad data counter variable must be initialized to zero for the counter used for counting the number of times bad data is used for one trapezoid.
 * Tuesday - Thursday April 14-16, 2009
 * Program:** Finish TrapArea.cpp with bad data counters.
 * Ticket out Door:** Upload TrapArea.cpp with bad data counters to your Gaggle locker.

Program:** <span style="font-family: Arial, Helvetica, sans-serif;">TrapArea.cpp with bad data counters
 * Wednesday April 8, 2009

Program:** <span style="font-family: Arial, Helvetica, sans-serif;">RectArea.cpp with bad data counters
 * Tuesday April 7, 2009

Go over Counting by One and Order of Operations Program:** <span style="font-family: Arial, Helvetica, sans-serif;">UpDown.cpp (start with Blank.cpp)
 * Monday April 6, 2009

<span style="font-family: Arial, Helvetica, sans-serif;">**Assignment:** Counting by One and Order of Operations
 * April 1-3, 2009**

<span style="font-family: Arial, Helvetica, sans-serif;">**Assignment:** Counting by One and Order of Operations
 * Tuesday March 31, 2009**


 * Monday March 30, 2009**
 * Program:** IncDec.cpp


 * Friday March 27, 2009**
 * Program:** IncDec.cpp

<span style="font-family: Arial, Helvetica, sans-serif;">Programs: **<span style="font-family: Arial, Helvetica, sans-serif;"> SAreaCyl.cpp, HorsePwr.cpp, EngineD.cpp
 * March 17 - 26, 2009


 * Friday, Monday March 13, 16, 2009**
 * Program**: SAreaCyl.cpp

<span style="font-family: 'Comic Sans MS', cursive;">**Thursday, March 12, 2009**
 * Assignment:** Create Your Own test Data for This Geometry Formula: Surface Area of a Right Circular Cylinder


 * <span style="font-family: 'Comic Sans MS', cursive;">Monday - Wednesday March 9-11, 2009 **
 * Do Now: [|GravityDoNow.PNG]**
 * Open Book Test Program:** Gravity.cpp

<span style="font-family: 'Comic Sans MS', cursive;">**Thursday, Friday March 5, 6, 2009** Finish back work

Verify that you have completed and turned in or uploaded the following assignments. Tuesday March 3, 2009 ** Finish back assignments. Upload to Gaggle locker.
 * <span style="font-family: 'Comic Sans MS', cursive;">Wednesday March 4, 2009 **
 * <span style="font-family: 'Comic Sans MS', cursive;">

Assignment:** CHECK AND UPLOAD ALL PROGRAMS TO YOUR GAGGLE LOCKER. TURN IN ALL PAPER AND PENCIL ASSIGNMENTS.
 * <span style="font-family: 'Comic Sans MS', cursive;">Monday March 2, 2009


 * <span style="font-family: 'Comic Sans MS', cursive;">Friday February 27, 2009 **
 * Assignment:** Finish the rest of the problems from the big packet **Change the Formulas to Assignment Statement Syntax in C++**, that we didn't do yet on that one or another version of the packet.

Program:** Initial.cpp
 * <span style="font-family: 'Comic Sans MS', cursive;">Thursday February 26, 2009
 * Assignment:** Finish the rest of the problems from the big packet **Change the Formulas to Assignment Statement Syntax in C++**, that we didn't do yet on that on or another version of the packet.

Reminder: time is coming soon!!!!!

**Program:** SalesTax.cpp
 * <span style="font-family: 'Comic Sans MS', cursive;">Monday - Wednesday February 23-25, 2009 **

**Program:** SalesTax.cpp
 * <span style="font-family: 'Comic Sans MS', cursive;">Friday February 20, 2009 **
 * Assignment:** Finish C++ NOTEBOOK ETC. QUESTIONS

[|NotebookQuest.doc]
 * <span style="font-family: 'Comic Sans MS', cursive;">Thursday February 19, 2009 **
 * Assignment:** C++ NOTEBOOK ETC. QUESTIONS

Change These Formulas to Assignment Statements in C++ Syntax [|AssignCPPSyntaxMoneyPercent.doc]
 * <span style="font-family: 'Comic Sans MS', cursive;">Wednesday February 18, 2009 **
 * Assignment:** Money, Percent, Tax, and Interest Rate Problems

<span style="font-family: 'Comic Sans MS', cursive;">**<span style="font-family: Arial, Helvetica, sans-serif;">Tuesday February 17, 2009 **
 * Program:** Finish Chirps.cpp

Program:** Chirps.cpp
 * <span style="font-family: 'Comic Sans MS', cursive;">Friday February 13, 2009

Change These Formulas to Assignment Statements in C++ Syntax
 * <span style="font-family: 'Comic Sans MS', cursive;">Thursday February 12, 2009 **
 * New Handout Assignment:** Parentheses, Multiplication, Division, Addition, and Subtraction
 * Program:** Chirps.cpp

Problem numbers: 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17, 18, 21, 40, 41, 42, 44
 * Old Handout Assignment:** Change These Formulas to Assignment Statements in C++ Syntax

Program: ** Freefall.cpp
 * <span style="font-family: 'Comic Sans MS', cursive;">Wednesday February 11, 2009

Program: ** Freefall.cpp
 * <span style="font-family: 'Comic Sans MS', cursive;">Tuesday February 10, 2009

<span style="font-family: 'Comic Sans MS', cursive;">**<span style="font-family: 'Comic Sans MS', cursive;">Monday February 9, 2009 Program: ** Freefall.cpp

Program: ** Freefall.cpp
 * <span style="font-family: 'Comic Sans MS', cursive;">Thursday February 5, 2009

<span style="font-family: 'Comic Sans MS', cursive;">**Tuesday February 3, 2009** <span style="font-family: Arial, Helvetica, sans-serif;">**Do Now:** Put your answer to this question on the <span style="font-family: Arial, Helvetica, sans-serif;">C++ Discussion Wiki page. What compiler directive is necessary when using special math functions like pow in C++?
 * Program:** Freefall.cpp

<span style="font-family: Arial, Helvetica, sans-serif;">Read: **<span style="font-family: Arial, Helvetica, sans-serif;"> C++ Assignment Statement Syntax Notes [|CPPAssignSyntaxNotes.doc] Assignment: Do problems 2, 3, 14, 16, 23, 24, 25, 26, 37, 43, and 51 from the 10 page packet titled, Change These Formulas to Assignment Statements in C++ Syntax [|AssignCPPSyntax.doc]
 * <span style="font-family: 'Comic Sans MS', cursive;">Monday February 2, 2009


 * <span style="font-family: 'Comic Sans MS', cursive;">Friday January 30, 2009 **
 * Do Now:** On the C++ Discussion Wiki page describe how to calculate the tip in a restaurant.
 * Program:** PerCent.cpp
 * Ticket Out Door:** Upload PerCent.cpp to Gaggle locker.

Do Now:** Find the formula for the volume of a right rectangular prism by searching on the internet.
 * <span style="font-family: 'Comic Sans MS', cursive;">Thursday January 29, 2009
 * Program**: VolBox.cpp
 * Ticket Out Door:** Upload VolBox.cpp to Gaggle locker

No School -- Snow Day
 * Wednesday January 28, 2009**

Do Now:** List all the mathematical operators you know in C++. Compare with your partner. Share with the class.
 * <span style="font-family: 'Comic Sans MS', cursive;">Tuesday January 27, 2009
 * Reading:** Read P. 70 - 76 in the green and gold textbook.
 * Assignment**: Paper and pencil assignment in notebook titled P. 76 Section 5.1 Questions
 * Ticket Out Door:** Turn in the completed paper by the end of the period.

Finish all assignments up to and including Divis.cpp Upload all programs to [|**Gaggle**] locker. Turn in all paper and pencil assignments.
 * <span style="font-family: 'Comic Sans MS', cursive;">Friday January 23, 2009 **

MID TERM EXAM
 * Thursday January 22, 2009

January 16 - 21, 2009 Assignment:** Questions on Divis.cpp

Program:** Divis.cpp
 * January 14, 15, 2009

Program/Make It Better:** Mod.cpp
 * January 9 - 13, 2009


 * Thursday January 8, 2009**
 * Do Now:** Put the new pages in the back of your notebook.
 * Reading:** Math Operations and Operators Notes
 * Program:** Mod.cpp


 * Wednesday January 7, 2009**
 * Program:** Subtract.cpp

Program:** Subtract.cpp Program:** Continue (template)
 * Tuesday January 6, 2009
 * Monday January 5, 2009

Programs:** Add Continue while loops to previous programs
 * December 16-23, 2009

Do Now:** Look over your grade sheet provided by Miss Hangen and upload programs that are not in your Gaggle locker. Also use your notebook to complete any back assignments and activities.
 * Tuesday December, 16, 2008
 * Classwork:** Look back through this wikispaces page to find the directions for any missing assignments and activities such a discussions.
 * Ticket out the Door:** Make sure Miss Hangen has access to your completed programs whether you have her put them on her USB drive or you upload them to your Gaggle locker.

Finish back work. Brandon and Alberto prepare presentation for MIT and Mr. Erb.
 * Monday December 15, 2008**

Do Now:** On the C++ Discussion Wiki page describe what is different about the results of Sphere.cpp compared to what is on the direction sheet. Finish the SphError.cpp --> Sphere.cpp program. Debug and fix all logic and runtime errors that produce the incorrect results. When you have gotten the correct results according to the test data provided, save the corrected program as **Sphere.cpp Revise Program:** Add a Continue While Loop to RectArea.cpp Continue through the notebook (Notice that new pages have been added.)
 * Friday December 12, 2008
 * Discuss with the other students in the class:** Discuss possibilities for what would cause the results of the program to be different than the test data and results on the direction sheet.
 * Ticket out the Door:** C++ Discussion Wiki What did you learn about constant declarations and data types today?

Download the **SphError.cpp** program to your USB storage device. [| SPHERROR.CPP] Open the program in Turbo C++ 4.5. I intentionally included quite a few errors in the program. Most of the errors are syntax errors that will result in error messages when you click on the lightning bolt to compile the program. Run the program to see what the error messages are. Debug and fix all syntax errors. Debug and fix all logic and runtime errors that produce the incorrect results. When you have gotten the correct results according to the test data provided, save the corrected program as **Sphere.cpp**
 * Thursday December 11, 2008**
 * Assignment**: Do the green packet in your notebook titled, ** Error Messages **.

Program**: SphError.cpp Debug and fix all syntax errors. Save the corrected program as Sphere.cpp
 * Wednesday December 10, 2008

Download the **SphError.cpp** program to your USB storage device. Open the program in Turbo C++ 4.5. I intentionally included quite a few errors in the program. Most of the errors are syntax errors that will result in error messages when you click on the lightning bolt to compile the program. Run the program to see what the error messages are. //Tomorrow you will debug the program.//
 * Tuesday December 9, 2008**
 * Today you will answer questions about the error messages.**
 * Assignment**: Do the green packet in your notebook titled, ** Error Messages **.

Programming Assignment: Add a continue while loop to TriArea.cpp referring to your notes and the TrapArea.cpp program as guides. Check ALL the test data.
 * Monday December 8, 2008**

Read:** Explanations on New Topics Present in TrapArea.cpp
 * Friday November 21, 2008
 * Questions:** Questions on TrapArea.cpp


 * Thursday November 20, 2008**
 * Read:** Explanation on New Topics Presented in TrapArea.cpp
 * Program:** TrapArea.cpp

Finish everything up through Divide.cpp
 * Wednesday November 19, 2008**
 * Ticket out the Door:** Go to the C++ Discussion Wiki to explain what your learned about **bad data while loops** from your experience with adding them to the programs and writing the Divide.cpp program. Write in paragraph form. Read the other posts and reply to at least one of them.

Read:** P.1 of Explanations on New Topics Presented in TrapArea.cpp Luis J and Luis E work as partners. Each does the program. Juan and Brandon work as partners. Each does the program. Alberto works by himself. The code must be finished by the end of the period.
 * Tuesday November 18, 2008
 * Formal Assessment Program:** Divide.cpp

Insert bad data while loops in TriArea.cpp and RectArea.cpp
 * Monday November 17, 2008**

Insert bad data while loops in Travel.cpp and Circle1.cpp
 * Friday November 14, 2008**

Do Now:** Check your gaggle email to see if Miss Hangen sent you something. <span style="color: #5e7854; font-family: 'Comic Sans MS', cursive;">**Bad Data While Loops: Insert the bad data while loops into these existing programs.** Test the programs thoroughly with the test data provided. Have the other students help you trouble-shoot. Upload the finished programs to your gaggle locker.
 * Thursday November 13, 2008
 * Programs: ** Travel.cpp and Circle1.cpp
 * Classwork Directions**: Open your existing programs and insert the bad data while loops.

Do Now:** 1. What do you remember about **while** loops from last year? Look at the **Travel.cpp** program in the front of your notebook. 2. What would be good data for the program? 3. What kinds of data would be bad data for this program? Draw arrows from the passages to the parts of the code to match them. Emphasis: Must have second **cin** in the loops to avoid an infinite loop. Debrief
 * Wednesday November 12, 2008
 * Classwork:** Read the first page of Travel.cpp with Bad Data While Loops.

Finish back programs and upload to your gaggle locker.
 * Tuesday November 11, 2008**

Finish Complete.cpp and Analyze.cpp
 * Monday November 10, 2008**

Blank.cpp program template Programs on computer: Complete.cpp and Analyze.cpp from packet
 * Friday November 7, 2008**

Go over Ch. 4 Variables and Constants Packet with Miss Hangen
 * Thursday November 6, 2008**

Finish Ch. 4 Variables and Constants Questions
 * Wednesday November 5, 2008**

Do Now: see Tuesday Oct 28 Continue working on Ch. 4 Variables and Constants Questions
 * Tuesday November 4, 2008**

Gaggle.net
 * Monday November 3, 2008**

Do Now: ** In your own words describe on paper what it means to: 1. declare a variable 2. initialize a variable 3. output the value of the variable Now go to the C++ Discussion Wiki to include one of your descriptions.
 * <span style="font-family: 'Comic Sans MS', cursive;">Tuesday October 28, 2008

First, we will look at page 6 together.
 * <span style="font-family: 'Comic Sans MS', cursive;">Assignment: Finish the Ch. 4 Variables and Constants Questions**

media type="custom" key="2217253"

Continue working on Ch. 4 Variables and Constants Questions
 * Monday October 20, 2008**

Ch. 4 Variables and Constants Questions //Refer to pages 56-67 The data types chart for integers is on P. 56 and in your notebook. The data types chart for floating point decimals is on P. 58 and in your notebook.//
 * Friday October 17, 2008**

Multiply.cpp //Formal Individual Assessment Do this silently and individually.//
 * Thursday October 16, 2008**

Add.cpp Proj4Two.cpp
 * Wednesday October 15, 2008**
 * Tuesday October 14, 2008 **

AssignCV.cpp
 * Monday October 13, 2008**