QT3

=CPP QT3 Pd 8=

//Objective: Use characters, strings, and functions associated with them effectively.// Finish back assignments. Continue in paper back (Dawson) textbook.
 * Tuesday March 29, 2011**

//Objective: Use characters, strings, and functions associated with them effectively.//
 * Monday March 28, 2011**

__Read__: Dawson (paperback) textbook P. 75-82 Start with **Blank.cpp**

__Program__: **StringTester.cpp** P. 78 (Dawson)

Follow the standard procedure for putting this in a Word document and testing it. Include in your Word document, an explanation of how this program works and what you learned.

__Grading__: 10% - format and documentation 30% - code 30% - output 30% - explanation **﻿** ﻿Follow the standard procedure for putting these in Word documents and testing them. Print.

//Objective: Use appropriate loops for the task in C++ programs.// __Think - Pair - Share__: Can you use numbers to refer to letters of the alphabet? What are ASCII codes? Where can you find them? How do you use them in C++? __Program__: **Possible.cpp** (directions in binder) Follow the standard procedure for putting this in a Word document and testing it. **Include in your Word document, an explanation of how this program works and what you learned.**
 * Friday March 25, 2011**

Follow the standard procedure for putting this in a Word document and testing it. Print.

//Objective: Use appropriate loops for the task in C++ programs.// __Program__: **OutterInnerLoop.cpp** (directions in binder) Follow the standard procedure for putting this in a Word document and testing it. **Include in your Word document, an explanation of how this program works and what you learned.**
 * Thursday March 24, 2011**

Follow the standard procedure for putting this in a Word document and testing it. Print.

//Objective: Use appropriate loops for the task in C++ programs.//
 * Wednesday March 23, 2011**

__Program__: **AB123.cpp** from page 4 of **Ch 8 Loops: Summary and Questions** Follow the standard procedure for putting this in a Word document and testing it. Finish previous programs. Follow the standard procedure for putting this in a Word document and testing it. Print.

//Objective: Use appropriate loops for the task in C++ programs.//
 * Monday & Tuesday March 21 & 22, 2011**

Finish previous programs. Follow the standard procedure for putting these in Word documents and testing them. Print.

//Objective: Use appropriate loops for the task in C++ programs.//
 * Friday March 18, 2011**

__Read__: Study the flowchart on page 4 of **Ch 8 Loops: Summary and Questions** (in binder) __Program__: **SumItUp.cpp** from page 4 of **Ch 8 Loops: Summary and Questions** Follow the standard procedure for putting these in Word documents and testing them. **Include in your Word document, an explanation of what a flowchart is and how it helped you write the program.** Finish previous programs. Follow the standard procedure for putting these in Word documents and testing them. Print.

//Objective: Use appropriate loops for the task in C++ programs.//
 * Thursday March 17, 2011**

__Read__: page 4 of **Ch 8 Loops: Summary and Questions** (in binder) __Program__: **NameLoop.cpp** #5 from page 4 of **Ch 8 Loops: Summary and Questions** __Program__: **OddLoop.cpp** #6 from page 4 of **Ch 8 Loops: Summary and Questions** Follow the standard procedure for putting these in Word documents and testing them. Follow the standard procedure for putting these in Word documents and testing them. Print.

//Objective: Use appropriate loops for the task in C++ programs.//
 * Wednesday March 16, 2011**

__Read__: page 1 of **Ch 8 Loops: Summary and Questions** (in binder) __Paper and Pencil__: pages 2 and 3 of **Ch 8 Loops: Summary and Questions** __Programs__: Finish the programs from yesterday.

Follow the standard procedure for putting these in Word documents and testing them.
 * Include in your Word documents, explanations of how these programs work and what you learned. **

__Grading__: 10% - format and documentation 30% - code 30% - output 30% - explanation Follow the standard procedure for putting these in Word documents and testing them.
 * Include in your Word documents, explanations of how these programs work and what you learned. **

Print.

//Objective: Use counters and for loops in programs.//
 * Tuesday March 15, 2011**

__Read__: Dawson (paperback) textbook P. 71-75 __Read__: Green & gold textbook P. 127-152 Start with **Blank.cpp** __Program__: **ForLoop.cpp** P. 139 (green & gold) __Program__: **Backward.cpp** P. 139 (green & gold) __Program__: **Counter.cpp** P. 72-73 (Dawson)

Follow the standard procedure for putting these in Word documents and testing them. **Include in your Word documents, explanations of what you learned from these programs.**

__Grading__: 10% - format and documentation 30% - code 30% - output 30% - explanation **﻿** ﻿Follow the standard procedure for putting these in Word documents and testing them. **Include in your Word documents, explanations of what you learned from these programs.** Print.

//Objective: Use switch structures in programs.//
 * Monday March 14, 2011**

__Paper and Pencil__: In general what is a common use of a switch case structure? @http://www.npr.org/2011/03/14/134492882/how-to-transform-the-number-pi-into-a-song __Program__: **PlanetWeight.cpp** Directions are in the green and gold textbook pages 134 and 135 Project 7-4. Follow the standard procedure for putting these in Word documents and testing them. **Include in your Word documents, explanations of what you learned from these programs.** Print.

//Objective: Use switch structures in programs.//
 * Friday March 11, 2011**

__Finish__: **Shipping.cpp** __Program__: **ShipPigeon.cpp** Start with Shipping.cpp and add to it and change the file name. Change Shipping.cpp to include a 4th case, **carrier pigeon**, **$20**. Test compared to the output in the binder. Turn in printout for **ShipPigeon.cpp** with all test data from the directions for **Shipping.cpp** and **ShipPigeon.cpp**.

//Objective: Evaluate programs.//
 * Thursday March 10, 2011**

Get evaluation sheets and writing implement. __Paper and Pencil__: Evaluate 5 projects at the computer fair.

Turn in all papers.

//Objective: Use switch structures in programs.//
 * Monday - Wednesday March 7-9, 2011**

__Read__: **Switch Structure Notes & Chapter 7 Summary** (in white binder) __Read__: **Chapter 7** (Green and gold textbook) __Paper and Pencil__: **Questions on switch Structure Notes and Chapter 7** (in white binder) __Program__: **Shipping.cpp** Turn in papers.

//Objective: Understand truth as C++ defines it.// //Objective: Use if statements to branch to sections of code.// //Objective: Use switch statements to select a section of code to execute.// //Objective: Use while and do loops to repeat sections of code.// //Objective: Generate random numbers.// __Read in Dawson book__: P. 66-69 **Summary, Questions and Answers, Discussion Questions, Exercises** __Paper and Pencil__: **Chapter 2 Review** 5 page packet __Program__: **MenuChooserEnum.cpp** __Extra Credit Program__: **ComputerGuessMyNumber.cpp** Follow the standard procedure for putting these in Word documents and testing them. **Include in your Word documents, explanations of what you learned from these programs.** Print. Upload to Gaggle.
 * Friday February 25 - Friday March 4, 2011 (Review Chapter 2 of Dawson text)**

//Objective: Generate random numbers in C++.// //Objective: Write programs that use random numbers.// __Read in Dawson book__: P. 58-63 Generating Random Numbers __Program__: **DieRoller.cpp** P. 59 __Read__: P. 63 - 65 __Program__: **GuessMyNumber.cpp** Follow the standard procedure for putting these in Word documents and testing them. **Include in your Word documents, explanations of what you learned from these programs and these pages of reading.** Print. Upload to Gaggle.
 * Thursday February 24, 2011**

//Objective: Write a program that uses counters.// //Objective: Write programs with strings and logical operators.// Help each other to finish this packet. __Paper and Pencil__: **Evaluating Control Expressions with Relational and Logical Operators** Show your steps. Finish and print **TaxTotal.cpp** with all the test data provided. __Read:__ Pages 49 through 52. __C++ Program__: **FinickyCounter.cpp** Follow the standard procedure for putting it in a Word document and testing it. Print. __Read:__ Pages 52 through 58. __C++ Program__: **DesignersNetwork.cpp** Follow the standard procedure for putting it in a Word document and testing it. **Include in your Word document, an explanation of what you learned from this program and these pages of reading.** Print.
 * Wednesday February 23, 2011**
 * Include in your Word document, an explanation of what you learned from this program and these pages of reading. **

Upload to Gaggle.

//Objective: Write a program to calculate sales tax and the final price of an item.// Help each other to finish this packet. __Paper and Pencil__: **Evaluating Control Expressions with Relational and Logical Operators** Show your steps. __C++ Program__: **TaxTotal.cpp** Directions in your binder. Refer to the **Evaluating Control Expressions with Relational and Logical Operators** pages to help with the bad data while loop condition for the //**TaxRate**//.
 * Friday February 18, 2011**

Upload to Gaggle. Have other students test your program with the test data to catch a problems that you may have missed. Print.

//Objective: Write a program to calculate sales tax and the final price of an item.// Open **Continue.cpp** __C++ Program__: **TaxTotal.cpp** Directions in your binder. __Paper and Pencil__: **Evaluating Control Expressions with Relational and Logical Operators** Show your steps.
 * Tuesday - Friday February 15 - 18, 2011**

Upload to Gaggle. Print

//Objective: Format output in columns.// //Objective: Use logical and relational operators correctly.// __Discuss with a partner__: 1. How are numbers usually lined up in columns? 2. How does setprecision work? Start with **Blank.cpp** __C++ Program__: **Columns.cpp** Directions in your binder. __Paper and Pencil__: **Evaluating Control Expressions with Relational and Logical Operators** Show your steps.
 * Monday February 14, 2011**
 * In your Word document, explain what your learned about making columns, from the program.**

Print it.
 * Explain what your learned about making columns, from the program in the Word document.**

//Objective: Calculate using percent. Format percents.// //Objective: Use logical and relational operators correctly.// Start with Blank.cpp __C++ Program__: **Percent.cpp** Directions in your binder.
 * Thursday February 10, 2011**

__Paper and Pencil__: **Evaluating Control Expressions with Relational and Logical Operators** Show your steps.

Explain what your learned from the program in the Word document. Print it.

//Objective: Make the temperature conversion program more versatile.//
 * Monday February 7, 2011**

Make the **TempConvert.cpp** program **better** by having it ask the user whether the conversion is from Celius to Fahrenheit or vice versa and then do the correct conversion. What will you look for when doing a self-evaluation of your program? Self-evaluate the program. When it is great, put the source code and output in a Word document and print.
 * 1. What does 9/5 evaluate to in C++? ||
 * 2. What does 9.0/5.0 evaluate to in C++? ||
 * 3. Solve the formula F = 9/5 C + 32 for C. ||
 * 4. What data type is used for a single character such as Y, N, C, F, c or f? ||
 * 5. What structure is good for catching bad data? ||
 * 6. What branching structure is useful for deciding between 2 courses of action? ||

//Objective: Format output.// Start with Blank.cpp __C++ Program__: **CoutSetF.cpp** Directions in your binder. Have Miss Hangen check it. Do not print. Explain what your learned from the program.
 * Friday February 4, 2011**

//Objective: Create a program to do temperature conversions.//
 * Thursday February 3, 2011**

media type="custom" key="8246324"


 * 1) Save this file to your desktop. [[file:AssignCPPSyntaxASMDParenBlocks.doc]]
 * 2) Put your name in the header.
 * 3) Type the formula in C++ syntax in the box. Use the variables as they appear in the declarations provided.
 * 4) Save and upload to your Gaggle digital locker.
 * 5) Print

 __C++ Program__: **TempConvert.cpp** Write a program to accept a temperature in degrees Celsius from the user and calculate and output the equivalent temperature in degrees Fahrenheit.


 * Start with Continue.cpp
 * Use appropriate variable and constant names
 * Use appropriate indenting
 * Test data:
 * Celsius || Fahrenheit ||
 * -40 || -40 ||
 * 0 || 32 ||
 * 100 || 212 ||
 * 37 || 98.6 ||
 * 25 || 77 ||
 * 2 || 35.6 ||
 * -4 || 24.8 ||
 * 5 || 41 ||
 * //Plan//** how you could make this program better.

//Objective: Write a program to calculate the volume of a box, when the dimensions are provided in the same unit of measure.// PUT CODE AND TEST DATA IN WORD AND PRINT! __C++ Program__: **ConvertSeconds.cpp** Create a program in C++ in which the user inputs a number of seconds and the program outputs the number of hours, minutes, and seconds that it is equivalent to. Use the modulus operator, %, to calculate the remaining minutes and seconds.
 * Monday & Wednesday January 31 & February 2, 2011**
 * **Input Seconds** || **Output**
 * Hours** || **Output Minutes** || **Output**
 * Seconds** ||
 * -1234 ||  ||   ||   ||
 * -1 ||  ||   ||   ||
 * 16888 || 4 || 41 || 28 ||
 * 7000 || 1 || 56 || 40 ||

__C++ Program__: **VolBox.cpp** Directions are in your white binder.

Upload to your gaggle digital locker. PUT CODE AND TEST DATA IN WORD AND PRINT!

//Objective: Write programs with the modulus operator.// 1. Calculate how many feet and inches there are in 3456 inches. Show your work. 2. Calculate how hours, minutes and seconds there are in 33333 seconds. Show your work. 3. You will need 1 variable for accepting input. How many additional variables will you need to calculate and output the answer for the program ConvertSeconds.cpp?
 * Friday January 28, 2011**

__C++ Program__: **ConvertSeconds.cpp** Create a program in C++ in which the user inputs a number of seconds and the program outputs the number of hours, minutes, and seconds that it is equivalent to. Use the modulus operator, %, to calculate the remaining minutes and seconds.
 * **Input Seconds** || **Output**
 * Hours** || **Output Minutes** || **Output**
 * Seconds** ||
 * -1234 ||  ||   ||   ||
 * -1 ||  ||   ||   ||
 * 16888 || 4 || 41 || 28 ||
 * 7000 || 1 || 56 || 40 ||

Upload to your gaggle digital locker.