QT2

=​ Computer Programing I in Visual Basic --- CS602 --- Daily Assignments=

Monday 1/25/10
**MidTerm:** Finish and enter your answer into SynchronEyes Quiz
 * __ Assignment: __**
 * Back Work:** Finish

Friday 1/22/10
**__ Do Now: __** media type="custom" key="5210615" Do this **SILENTLY** and **INDIVIDUALLY**
 * __ MidTerm Multiple Choice: __**
 * 1) Put your name on your packet.
 * 2) Answer the questions on the paper.
 * 3) Later in the period or on Monday we will transfer the answers to the computer.

You may use any pages in the notebook, the Visual Basic program, your programs in Gaggle, this wiki, and the TI83 calculator to try things and look up concepts.

Finish IceCreamVolume.frm when you are done. Turn in your packet before you leave.

**__Ticket out the Door:__** Turn in the MidTerm Multiple Choice packet with your name on it.

Thursday 1/21/10
Save this form to the desktop. Open it and follow the directions in your notebook. Do this **SILENTLY** and **INDIVIDUALLY**
 * __ MidTerm Program: __**

Save **IceCreamVolume.frm** to the desktop and add it to your Gaggle digital locker.

Wednesday 1/20/10
**__ Do Now: __** Discuss Surface Area of a Right Circular Cylinder paper and pencil problems.

Refer to your Geometry Formula file to determine the formulas or search online for formulas for spheres and cones.
 * __ Activity: __**
 * Paper and Pencil:** Create Your Own Test Data for These Geometry Formulas: **Cones and Spheres**

**__Ticket out the Door:__** Turn in the paper and pencil assignment.

Tuesday 1/19/10
**__ Do Now: __** Finish the paper: **Create Your Own Test Data: Surface Area Right Circular Cylinder**

Program**: CylinderArea.frm** You will be using IsNumeric to make check for data that are not in the form of numbers. Use the PrismArea.frm directions in yellow as a guide. **__Ticket out the Door:__** To make the program better, also include a nested if then else to check for positives.
 * __Activity:__**

Friday 1/15/10
**__ Do Now: __** **Think, Pair, Share:** What does it mean to have **//nested//** If Then Else structures? Think about it. Discuss this with a student near you. Share what you concluded with the class, when I ask.

**Program:** Finish PrismArea.frm
 * __Assignment:__**
 * Make it Better:** On page 3 of the directions, you will see that we have not verified that the numbers are positive. Add a nested If Then Else structure inside the existing one to handle that situation and test all of the data on pages 2 and 3 again.

**Paper and Pencil:** Create Your Own Test Data for These Geometry Formulas: **Surface Area** of a Right Circular **Cylinder**
 * __Ticket out the Door: __**

Thursday 1/14/10
**__ Do Now: __** **Paper and Pencil:** Create Your Own Test Data for These Geometry Formulas: **Surface Area** of a Right Rectangular **Prism**

**Program:** PrismArea.frm (form provided) [|PrismArea.Frm]
 * __Assignment:__**
 * Directions:** Download PrismArea.frm, save to your desktop, then open it. Use the directions in your notebook to complete the code and test the data.

On your paper, tell whether your program and your paper and pencil answers match. Explain why or why not, and fix the paper and the program accordingly.
 * __Ticket out the Door: __**

Wednesday 1/13/10
**Program:** CylinderVolume.frm (finish from yesterday)
 * __Assignment:__**
 * Directions:** Use the directions in your notebook. Test with good data and bad data.

Does your program give these results?
 * __Ticket out the Door: __**
 * **Radius** || **Height** || **Volume** ||
 * 5 || 32 || 2512 cubic units ||
 * -10 || 5 || Invalid Data -- Use positives. ||
 * 60.5 || 0 || Invalid Data -- Use positives. ||
 * 7.7 || 1.1 || 204.79 cubic units ||
 * 3.5 || 13 || 500.045 cubic units ||

Tuesday & Wednesday 1/12, 13/10
**__ Do Now: __** Which of these is the correct declaration for the constant pi? Write the correct one on your paper. Dim PI = 3.14 As Single Const PI As Single Const PI = 3.14 Declare PI As 3.14

Find the formula for the volume of a right circular cylinder either online on your GeoFormulas.doc.
 * Paper and Pencil:** Create Your Own Test Data for These Geometry Formulas: **Volume** of a Right Circular Cylinder

**Program:** CylinderVolume.frm 
 * __Assignment:__**
 * Directions:** Use the directions in your notebook. Test with good data and bad data.

Does your program give these results?
 * __Ticket out the Door: __**
 * **Radius** || **Height** || **Volume** ||
 * 5 || 32 || 2512 cubic units ||
 * -10 || 5 || Invalid Data -- Use positives. ||
 * 60.5 || 0 || Invalid Data -- Use positives. ||
 * 7.7 || 1.1 || 204.79 cubic units ||
 * 3.5 || 13 || 500.045 cubic units ||

Monday 1/11/10
**__ Do Now: __** GeoFormulas.doc Download the Geometry Formula file, save it to your desktop, and open it. Drag the names of the geometric figures next to the correct figure on the Geometry Formula Sheet. Save it to your desktop and upload it to your Gaggle digital locker.

**Paper and Pencil:** Create Your Own Test Data for These Geometry Formulas: Volume of a Right Rectangular Prism
 * __Assignment:__**
 * Program:** VolBox (form provided) [[file:VolBox.Frm]]
 * Directions:** Download VolBox.frm, save to your desktop, and open it. Use the directions in your notebook to complete the code and test the data.

On your paper, tell whether your program and your paper and pencil answers match. Explain why or why not, and fix the paper and the program accordingly.
 * __Ticket out the Door: __**

Friday 1/8/10
Finish TriangleByAngles.frm, Weather.frm, Couch.frm, and FuelEconomy.frm from yesterday. Finish back work.

Thursday 1/7/10[[file:BadDataMessageBox.doc]]
**__ Do Now: __** 1. At what low temperature would you feel it would be unsafe to spend an hour outside? 2. At what high temperature would you feel it would be unsafe to spend an hour being physically active outside? 3. What do you think would be too low to be a reasonable number of miles per gallon the worst motor vehicle could get? 4. What do you think would be too high to be a reasonable number of miles per gallon for even the most innovative motor vehicle?

**Revise TriangleByAngles.frm:**
 * __Assignment:__**


 * Add code to your first command button in TriangleByAngles.frm to determine if the data provided is positive or not.
 * When the data is not acceptable, tell that to the user with a **message box** and put the cursor on the Clear button.
 * Continue with the code you already have for when the angles measures are positive.
 * Test thoroughly.


 * Revise FuelEconomy.frm** to catch unreasonable data.
 * Revise Weather.frm** to catch unreasonable data.
 * Revise Couch.frm** to put the statement "No Price Available" in a message box instead of a label.

Upload to your Gaggle digital locker.
 * __Ticket out the Door: __**

Wednesday 1/6/10
**__ Do Now: __** 1. What is wrong here?

2. What is wrong here?

3. Save your **TriangleByAngles.frm** program to the desktop. Run it with the test data above. What results does your program produce?

4. Write an If Then Else structure that will output in a label the words "Bad Data -- Use positive numbers." or "Good Data" as appropriate.

Catch bad data and message box demonstration by Miss Hangen. Program: **Message.frm** Add outer If Then Else structures and message boxes to **Weather.frm**, **FuelEconomy.frm**. Change the message "No Price Available" from appearing in a label to appearing in a message box in the program **Couch.frm**.
 * __Class Activity:__**


 * Save these programs to your desktop from Gaggle.
 * Make the adjustments.
 * Test them with good and bad data.
 * Save and upload to your Gaggle digital locker.

Say "Have a nice day Miss Hangen" on your way out the door.
 * __Ticket out the Door: __**

Monday & Tuesday 1/4,5/10
**__ Do Now: __** Determine your progress in the **TriangleByAngles.frm** program

Finish **TriangleByAngles.frm** Self-grade your program with the grading scheme sheet.
 * __Assignment:__**
 * //Finish Backwork//**

One the back of your self-grade sheet **reflect** on your learning while having worked on TriangleByAngles.frm by writing in sentences and paragraph form. Things to consider while reflecting:
 * __<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">Ticket out the Door: __**

Turn in your self-grade sheet and your reflection.
 * What did you learn about how programs are evaluated?
 * What did you learn about finding your own errors?
 * What did you learn about making the program user friendly.
 * What did you learn about object properties and changing them?
 * What did you learn about the flow of a program?
 * What did you learn about the If Then Else decision making structure?
 * What did you learn about debugging a program?
 * What did you learn about working with a partner?



Tuesday & Wednesday 12/22, 23/09
Self-Evaluate:** Grade your own program with the grading scale in your notebook as Miss Hangen demonstrates grading of a program.
 * __ Class Activity: __
 * Program with Partner:** TriangleBy **Angles** .frm
 * Trace**: Use the provided trace sheets to write in your own code for the 2 main command buttons and continue the trace technique we used before.

Monday 12/21/09
Each student evaluate with test data and grading list in directions in notebook.
 * __ Class Activity: __**Program with Partner: **TriangleByAngles.frm**

Friday 12/18/09
**__ Do Now: __** media type="custom" key="5059433"
 * __ Class Activity: __**

Thursday 12/17/09
**__ Do Now: __** Paper and Pencil:


 * Fact: The sum of the 3 angles in a triangle is 180 degrees.**

1. Which of these are types of triangles based on the angle measures? Equilateral Obtuse Scalene Isosceles Right Acute

(Between does not include the boundary numbers 0 and the 90.)**
 * Fact: An acute angle has a measure between 0 and 90 degrees.

2. Can you create a triangle with 3 acute angles? Yes or No Write the equation that justifies your answer.


 * Fact: A right angle is exactly 90 degrees.**

3. Is it possible to have a triangle with 2 right angles? Yes or No Write an equation that justifies your answer. Draw a picture that demonstrates your answer.

(Remember the meaning of between.)**
 * Fact: An obtuse angle has a measure between 90 and 180 degrees.

4. Is it possible to have a triangle with 3 obtuse angles? Yes or No Draw a picture to demonstrate your answer. Write an equation that justifies your answer.

5. What is the highest number of obtuse angles that a triangle can have?

6. Draw a sketch of 3 isosceles triangles: one that is an acute triangle, one that is an obtuse triangle, and one that is a right triangle. Estimate the angle measures and write them inside the angles.

__**Class Activity:**__ Program with Partner: **TriangleByAngles.frm**

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__**Ticket out the Door:**__

Reread the directions to TriangleByAngles.frm to think about whether you and your partner are working in the right direction toward solving the problem. On your Do Now paper, write the answer to this question:
 * 7. Does the TriangleByAngles program refer to the sides of a triangle at all? Yes or No**

Wednesday 12/16/09
**__ Do Now: __** **Fill out the form that has these questions.** media type="custom" key="5044661"
 * 1) Are the angles of a triangle the same as the sides?
 * 2) What is true about the sum of the angles of a triangle?
 * 3) If you have 3 angle measures, how can you be sure that they can be the angles of a triangle?
 * 4) Only after you know that the angles form a triangle, you will determine what type of triangle it is. What are the names of the 3 types of triangles based on the angle measures?
 * 5) A right triangle has how many right angles?
 * 6) What is the measure of a right angle?
 * 7) How many obtuse angles does an obtuse triangle have?
 * 8) Describe an obtuse angle.
 * 9) How many acute angles does an acute triangle have?
 * 10) Describe an acute angle.
 * 11) What does process of elimination mean?

__** Class Activities: **__ Paper and Pencil: **Or/And before TriangleByAngles.frm** Find someone who will agree to be your partner for the new program you will be doing. The directions are in your notebook and available here. .
 * Program Planning:** Read all of the directions for **TriangleByAngles.frm**

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__**Ticket out the Door:**__ Turn in **Or/And before TriangleByAngles.frm** and tell me who your partner is or if you are working by yourself. media type="custom" key="5044365"

Tuesday 12/15/09
**__ Do Now: __** Example: **Trace of Code** Go over this together.

__**Assignment:**__ Paper and Pencil: Trace the Code of TriangleBySides.frm with the 4 sets of data provided on the trace sheets.

Monday 12/14/09
Read: **Compound Conditions in In Then Else Structures** Paper and Pencil: **Compound Condition Questions**
 * __ Assignment: __**

Friday 12/11/09
**__ Do Now: __** Finish: **MovieTheater.frm**

Paper and Pencil: **Chapter 4 Questions** And online media type="custom" key="5011015"
 * __Assignment:__**

Turn in Chapter 4 Questions packet.
 * __<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">Ticket out the Door: __**

Thursday 12/10/09
**__ Do Now: __** Program: **FuelEconomy.frm**

Program: **MovieTheater.frm** Online, look up movie ticket prices for different age groups. @http://www.penncinema.com/index.php?pID=16 Create a program that will display the type of ticket and its price when the user enters the age. Model it after the FuelEconomy program. Use the visible property. Use appropriate object names, variable names, etc. Make it look good.
 * __Individual Assessment:__**

Upload to your Gaggle digital locker.
 * __<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">Ticket out the Door: __**

Wednesday 12/9/09
Class Activity: __ Program**: Make additions to the program **TriangleBySides.frm** so that it has another command button that will determine whether the triangle is equilateral, isosceles, or scalene and display that answer in another label on the form. Paper and Pencil: **Questions on Additions to TriangleBySides.frm**
 * __

<span style="color: #0000ff; font-family: 'Lucida Console',Monaco,monospace;">**<span style="color: #0000ff; font-family: 'Lucida Console',Monaco,monospace;">Computer Science Education Week -- The first one ever!!!! ** @http://computingcareers.acm.org/ Why choose computer science as a career?

Tuesday 12/8/09
**__ Do Now: __** Discussion on nested If Then Else structures.

__**Class Activity:**__ Program: Make additions to the program **TriangleBySides.frm** so that it has another command button that will determine whether the triangle is equilateral, isosceles, or scalene and display that answer in another label on the form.

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__**Ticket out the Door:**__ Turn in TriangleBySides Questions if you haven't yet.

Monday 12/7/09
**__ Do Now: __** Finish TriangleBySides.frm

__**Class Activity:**__ Paper and Pencil: **TriangleBySides Questions**

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__**Ticket out the Door:**__ Turn in TriangleBySides Questions

Friday 12/4/09
**__ Do Now: __** Paper and Pencil: 1. What is an equilateral triangle? 2. Draw a sketch of an equilateral triangle and label its sides with hypothetical lengths. 3. What is true about the sides of an isosceles triangle? 4. Draw a sketch of an isosceles triangle and label its sides with possible lengths. 5. Describe a scalene triangle. 6. Draw a sketch of a scalene triangle and label its sides with appropriate lengths. Trade papers with a partner to check them.

__**Class Activity:**__ Paper and Pencil: **And / Or before TriangleBySides.frm** Program: **TriangleSides.frm** Create a program to check whether the lengths of sides provided form a triangle.
 * Discussion** on what combinations of lengths can actually form a triangle.

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__**Ticket out the Door:**__ Upload to your gaggle digital locker.

Thursday 12/3/09
**__ Do Now: __** Save EmptyString.frm to the desktop. Do a self-evaluation based on the directions in the notebook. Have it available for Miss Hangen to check. __**Assignment:**__ Program: **Cereal.frm** <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** Upload to your Gaggle digital locker. Finish back work.

Wednesday 12/2/09
Read: If Then Notes Read: String Notes Paper and Pencil: **If Then and String Notes Questions**
 * __ Assignment: __**

Tuesday 12/1/09

 * __ Assignment: __**

Paper and Pencil: **If Then Activities with Examples** pages 4, 5, 6, 8

Wednesday 11/25/09
Program: **ThanksgivingGame.frm** Direction on pink stapled packet. Show the finished version to Miss Hangen, **today**.
 * <span style="color: #ff00ff; font-family: 'Comic Sans MS',cursive;">1 DAY ONLY !!![[image:Turkey.PNG width="216" height="194" align="right" caption="Creative Commons"]] **

Tuesday 11/24/09
**__ Do Now: __** Read the If Then Notes in the notebook before SlopeLine.frm directions. Pay special attention to the top of page 2. __**Assignment:**__ Program: **EmptyString.frm** It is on yellow page in the back of your notebook. Refer to the If Then Notes and the Couch program as resources. <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** Upload to your Gaggle digital locker. Finish back work.

Monday 11/23/09
**__ Do Now: __** Page 3 of If Then Activities with Examples

__**Assignment:**__ Program: **Couch.frm**

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** Do the ElseIf problem on the back of the Do Now paper.

Friday 11/20/09
**__ Do Now: __** Page 2 of If Then Activities with Examples

__**Assignment:**__ Program: **FlipCoin.frm** with Visible Property This is a completely new program.

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** On the back of your Do Now paper, tell me everything you can about the visible property. Explain how to change it in the properties window and in the code. How and when would you use the visible property? = =

Thursday 11/19/09
**__ Do Now: __** Page 1 of If Then Activities with Examples

__**Assignment:**__ Program: Revisions to **FreeFall.frm** Go to your Gaggle digital locker and **save** your existing **FreeFall.frm** program to the **desktop**. If you don't have it, do a new one by using the earlier directions in your notebook.

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** Open your Weather.frm, MyOwn.frm, and IsNumeric.frm programs for me to check.

Monday, Tuesday, Wednesday 11/16, 17, 18/09
Program: **Weather.frm** Program: **MyOwn.frm** Program: **IsNumeric.frm** Directions are in the blue notebook.
 * __ Assignment: __**

Friday 11/13/09
Make sure the results are correct. Test the Clear button. Test the Exit button. Make sure the program doesn't crash. If it does, fix it. and retest it. Make sure the tab order is good. Check spelling etc.
 * <span style="color: #000080; font-family: 'Comic Sans MS',cursive;">Test all programs with the test data in the notebook. **

Thursday 11/12/09
**__ Do Now: __** 1. What is an **If Then Else** structure and how does it work? 2. Do you think it is possible to have an If Then without an Else? 3. If so, how do you think it would work? __**Assignment:**__ Research ASCII codes. 4. Explain what ASCII codes are. 5. Write the Dec ASCII code for the Enter key (carriage return). @http://webopedia.com/TERM/A/ASCII.html @http://www.asciitable.com/
 * On Paper:**
 * On the Same Paper:**

Program: **FreeFall.frm** with KeyPress Procedure Go to your Gaggle digital locker and **save** your existing **FreeFall.frm** program to the **desktop**. If you don't have it, do a new one by using the earlier directions in your notebook. Follow the directions in your notebook to add the KeyPress procedure to the program.

<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** 6. Explain what change you made to the Freefall.frm program and how it makes the program more user-friendly. 7. Explain what happens when the user presses the Enter key. 8. Since you used an **If Then** without an else, use one word or a phrase to tell what happens with the KeyPress procedure when the user does**n't** press the Enter key.
 * On the Same Paper:**

Wednesday 11/11/09
**__ Do Now: __** Study the SlopeLine.frm directions and explanation in your notebook. Discuss with the student next to you as necessary. __**Assignment:**__ Make sure to type your **name** in the name box on the left before you start the quiz. After you are finished, read the corrections on the quiz and reread the explanations in the notebook to clear up any misunderstandings. If you did not get 100%, click on **Try Again** at the bottom.

media type="custom" key="4774369"
<span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** After you are finished, read the corrections on the quiz and reread the explanations in the notebook to clear up any misunderstandings. If you did not get 100%, click on **Try Again** at the bottom. Make sure your SlopeLine.frm program is correct and uploaded to your digital locker.

Tuesday 11/10/09
**__ Do Now: __** Draw an x y coordinate system on a piece of graph paper. Plot these pairs of points and draw a line through each pair. (3, 6) (-2, 6) (5, -3) (2, 8) (10, -5) (10, 3) (-5, -9) (5, 9) Calculate the slope of each line and write it next to the line. Write the word horizontal by the horizontal line. Write the word vertical by the vertical line. __**Activity:**__ Get into your Gaggle locker. Save your **SlopeLine.frm** to the desktop. Then open it. Follow along with the explanation with Miss Hangen. Refer to pages 7 through 13 of the directions in the notebook. <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**__Ticket out the Door:__** Make sure your program is completely correct. Upload it to your Gaggle digital locker. Delete it off the desktop and empty the recycle bin. Turn in your Do Now paper with your name on it.

[|AssignSyntaxNotes.pdf] [|VBAssignSyntax.pdf] Write 5 lines in 5 minutes about converting an algebraic formula into a Visual Basic assignment statement.

Previous dates can be found on the QT1 page.