QT1

**First Marking Period 2010**
//Objective: Write assignment statements with fractions correctly.// //Objective: Write and debug programs using fractions.//
 * Friday November 5, 2010**



Refer to the directions for Chirps.frm in your VB binder.

// Crickets chirp more slowly as the temperature gets colder. For a certain kind of cricket, you can predict the temperature by counting how many chiprs they make in 1 hour, and then plugging that into this formula where **T** stands for **temperature** which is measured in degrees Fahrenheit and **C** stands for the number of **chirps** made in an hour. //

In Visual Basic we need to use the variables and constants as they appear in the declaration, besides using the proper operation symbols in the assignment statement used to calculate the temperature.

Given these declarations, what would be the assignment statement to calculate the temperature? Remember to use the proper syntax for Visual Basic. In VB, an assignment statement must be written (typed) on one line straight from the keyboard. No special formatting is used.

Dim Chirps As Integer Dim Temperature As Single Chirps = Val(txtChirps)

Program: **Chirps.frm** Self-evaluate with your Quality Check Off Sheet in your notebook.

Why is -50 not a realistic number for input in this program? What ideas do you have about what we could do about it?

//Objective: Write assignment statements with constants, fractions, and exponents, correctly.// //Objective: Write and debug programs using constants, fractions, exponents.//
 * Thursday November 4, 2010**

__Read:__ **Assignment Statements Syntax: Part II Examples** Fractions, Constant Declaration, Exponents __Paper and Pencil:__ **Assignment Statements Syntax: Constants, Fractions, Exponents** Page 1

Program: **Freefall.frm**

__Paper and Pencil:__ **Assignment Statements Syntax: Constants, Fractions, Exponents** Page 2

Have Miss Hangen check your Freefall.frm program. Upload to Gaggle.

//Objective: In Scratch, make multiple versions of a sprite efficiently.//
 * Wednesday November 3, 2010**

Scratch Program: **SpinningGuy.sb** (directions in white notebook)

Upload to your Gaggle digital locker.

//Objective: In Scratch, make multiple versions of a sprite efficiently.//
 * Thursday October 28, 2010**

Scratch Program: **SpinningGuy.sb** (directions in white notebook)

Upload to your Gaggle digital locker.

Tuesday & Wednesday October 26, 27, 2010
//Objective: Translate algebraic formulas into VB syntax using the order of operations rules correctly.// //Objective: Debug a program with incorrect results due to order of operations issues.//

__Read in Your Notebook:__ **Assignment Statement Syntax: Exponent Example** Vocabulary Word: **Depreciation** (dee pree she a shun) look up at http://dictionary.com

//Things depreciate in value over time, as they become worn out or obsolete. Here is a formula that is used by accountants when calculating the depreciation rate for tax purposes. This may be used for vehicles, buildings, equipment, etc //.

Use the formula try out the **test data from page 3** on the computer TI83 calculator.

1. What is the definition of depreciation?
 * __Questions to Answer on Paper__**

2. Draw a picture of the calculator screen with the test data used in the depreciation formula.

3. Translate the algebraic version of the formula into a Visual Basic calculation assignment statement using these variables:

Dim **DepRate** As Single //**'DepRate** will be used in place of **r** which stands for the **depreciation rate**. // Dim **SalvageValue** As Single //**'SalvageValue** will be used in place of **S** which stands for the **salvage value** which is what it is worth after it has depreciated. // Dim **Cost** As Single //**'Cost** is used in place of **C** and stand for the **original cost** of the item. // Dim **Years** As Single //**'Years** is used in place of **n** and stands for the **number of years**. //

4. What do you think the last line of code in cmdCalculate does?
 * lblDepRate = Format(DepRate, "Percent")**

Go over what you have done with the student next to you.

Use what you learned from the Do Now to help you complete the program for today. __Program:__ **Depreciation.frm** __Handout:__ **Assignment Statement Syntax: Exponents**
 * Self-evaluate** with your **Quality Check Off Sheet** in your notebook.

Monday October 25, 2010
//Objective: Assess ability to write, debug, and test a simple program.// Get into Gaggle digital locker so you are ready to upload. __**Program as a Test:**__ Program: **GoodBye.frm To be done silently and individually. ** Follow directions on the paper.

Does the form look good? Do the objects have the appropriate names? Do you have appropriate code in all the command buttons? Does the cursor start in the first textbox? Is the tab order correct? Does the test data produce correct results? Does the clear button empty the textboxes and the results label and move the cursor to the first textbox? Does the exit button work?
 * Self-Evaluate:**

Turn in direction sheet. Finish back assignments. Turn in direction sheet.
 * Email GoodBye.frm as an attachment to** jchangen@lancaster.gaggle.net


 * Friday October 22, 2010**

__**Open Book Test:**__ Grand Tour Matching Quiz (4 pages on ** yellow paper **) You may use your ** notebook and look at your Visual Basic programs. ** Create a program of your own choice that uses techniques that we have learned so far. You may also include new things that you have experimented with yourself. //Finish back assignments.// **__Ticket out the Door:__** Turn in: **Grand Tour Matching Quiz**
 * To be done silently and individually.[[image:hangenvb:shh.jpg width="120" height="120" align="right" caption="shh.jpg"]] **
 * Program**: **QT1MyOwn.frm**

Thursday 10/21/10
//Objectives: Enter a provided program, make it look professional, and test it.// **__ Do Now: __** Handout: **Grand Tour Picture Matching**

__**Open Book Test:**__ Program: **Hello.frm To be done silently and individually. ** Follow directions on the papers. You may use your notebook. Email **Hello.frm** as an attachment to jchangen@lancaster.gaggle.net Turn in direction sheet packet. Finish back assignments.

**__Ticket out the Door:__** Turn in: **Grand Tour Picture Matching** Turn in corrected **Grand Tour Questions** and any other paper and pencil assignments.

Wednesday October 20, 2010
//Objectives: Understand the overall layout of Visual Basic. Compare Scratch and VB.// Get into Gaggle and save your Scratch program RectArea.sb to the desktop. Use your notebook, Scratch, and Visual Basic to help you do the problems. Discuss with other students. Fix your **Grand Tour Questions** packet.
 * Paper and Pencil:** Visual Basic and Scratch Comparison

Turn in your finished papers.

Tuesday October 19, 2010
//Objectives: Use assignment statements to calculate. Understand the overall layout of Visual Basic.// Fix **Assignment Statement Syntax: Part I** Finish back assignments. Go over Do Now from yesterday. Use your notebook and Visual Basic programs to help you answer the questions.
 * Paper and Pencil:** Grand Tour Questions

Turn in your finished packet.

Monday October 18, 2010
//Objectives: Use assignment statements to calculate.// Handout Do Now 10/18/10

Finish **Program:** RectArea.sb in Scratch Have Miss Hangen check both of these.
 * Program:** RectangleArea.frm in Visual Basic

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Friday October 15, 2010
//Objectives: Use assignment statements to calculate.// Save your **TriangleArea.frm** to the desktop. Have Miss Hangen check it.

Finish **Program:** RectArea.sb in Scratch
 * Program:** RectangleArea.frm in Visual Basic

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Thursday October 14, 2010
//Objectives: Use assignment statements to calculate.// SynchronEyes Questions on computer

Finish **TriangleArea.frm**
 * Program:** RectangleArea.sb in Scratch

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Tuesday October 12, 2010
//Objectives: Use assignment statements to calculate.//
 * SynchronEyes Questions on computer**

Directions in the notebook.
 * Program:** TriangleArea.frm
 * Form for TriangleArea.frm
 * Code for TriangleArea.frm
 * Program:** RectangleArea.sb in Scratch (on your own, no directions)

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Friday October 8, 2010
//Objectives: Translate algebraic formulas into Visual Basic assignment statements.// Assignment Statement Syntax: Part I
 * Paper and Pencil:**

Directions in the notebook. Check progress report. Put returned papers in your binder.
 * Program:** PlayBall.frm

Turn in **Assignment Statement Syntax: Part I** Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Wednesday & Thursday October 6,7, 2010
//Objectives: Write a program with input, addition, and output following the pattern of an existing program.// Save Prom.frm program on the desktop.

Directions in the notebook. Show Miss Hangen your completed program. When you are finished, practice in Scratch.
 * Program:** Prom.frm

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Tuesday October 5, 2010
//Objectives: Declare variables with a Dim statement. Convert input into numeric values with Val.// Read **Declaring Variables with a Dim Statement** and highlight.

Start VB Program: **Prom.frm**
 * Paper and Pencil:** Questions on Declaring Variables with a Dim Statement

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Monday October 4, 2010
//Objectives: Declare variables. Write code to handle input, processing, and output.// Make sure that you have the form and objects for **Pet.frm** done correctly by following the directions in your notebook, Code for Pet.frm numbers 2 - 19.

Visual Basic Program Filename: **Pet.frm** Complete directions in the notebook, titled Code for Pet.frm numbers 20 - 32. Scratch Program: **Pet.sb** comparison

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Friday October 1, 2010
//Objectives: Design a user-friendly form.//
 * SynchronEyes Questions** will be sent to your computer**.**

Visual Basic Program Filename: **Pet.frm** Complete directions in the notebook.

Save to the desktop. Upload to your Gaggle digital locker. Delete off the desktop. Empty the recycle bin.

Thursday September 30, 2010
//Objectives: Declare variables. Identify input, processing, and output. Use labels for output.// Run your **Concatenation.frm** program to verify that it is working correctly.

Compare **Concatenation.sb** in Scratch to **Concatenation.frm** in Visual Basic Discuss variable declaration, input, Trim function, UCase function, concatenation of strings, concatenation operator, and labels for output.

Have Miss Hangen check your program with you.

Tuesday & Wednesday September 28-29, 2010
//Objectives: Create a Visual Basic program that demonstrates the use of string variables, input, concatenation, and output.// //Create a label for output, in which its borderstyle property is changed and its name property uses the lbl prefix.//
 * Paper and Pencil:** Matching

Program: **Concatenation.frm** Detailed directions are in the black notebook. Read them carefully. Test the program carefully. Have Miss Hangen check your finished program. Save to the desktop, upload to Gaggle digital locker, delete from desktop, empty recycle bin. Close programs, get desktop back to normal. Clean area, push in chair, put trash in can.
 * Paper and Pencil: Explain the differences and 1 similarity between a textbox and a label used for outputting results.**

Monday September 27, 2010
//Objectives: Create a Scratch program that demonstrates the use of string variables, input, concatenation, and output.// Look up the definition of concatenate online and write it on the back of you paper.
 * Paper and Pencil:**

Program: **Concatenation.sb** Save to the desktop Variable Declaration Input Process - Concatenation of strings Output Upload to Gaggle


 * Paper and Pencil:** Identify where input occurs and where output occurs in this program, on your paper.

Friday September 24, 2010
//Objectives: Using meaningful identifier names.// Look at ComputerNews.frm. List the names of the 5 textboxes. List the names of the 3 command buttons.
 * Paper and Pencil:**

Program: **Input.sb** Name sprites and costumes. Switch costumes.
 * Handout:** Match the code with the form.


 * Paper and Pencil:** Why do you think that naming sprites, costumes, textboxes, and command buttons is important?

Thursday September 23, 2010
//Objectives: Create a Scratch program with input from the user.// Get into Scratch.

Program: **Input.sb**

Save to the desktop, upload to Gaggle digital locker, delete from desktop, empty recycle bin. Close programs, get desktop back to normal. Clean area, push in chair, put trash in can.

Wednesday September 22, 2010
//Objectives: Change label properties. Name objects. Change tab order. Review the concept of input.// media type="custom" key="6978757"

Program: **Hi.frm** Program: **ComputerNews.frm** Add a clear button to ComputerNews.frm and **adjust the tab order**. Try sample projects in Scratch, located at My Computer - Local Disk C - Program Files - Scratch - Projects Or get into Scratch - File - Open - Projects

Save to the desktop, upload to Gaggle digital locker, delete from desktop, empty recycle bin. Close programs, get desktop back to normal. Clean area, push in chair, put trash in can.

Monday & Tuesday September 20, 21, 2010
//Objectives: Change label properties. Name objects. Change tab order.// Fill in the **Frayer Model Map** Template for the Word/Concept of INPUT.

Program: **Hi.frm** Program: **ComputerNews.frm** Add a clear button to ComputerNews.frm and **adjust the tab order**.

Save to the desktop, upload to Gaggle digital locker, delete from desktop, empty recycle bin. Close programs, get desktop back to normal. Clean area, push in chair, put trash in can, and turn in Frayer Model Map of INPUT.

Wednesday - Friday September 15-17, 2010
//Objectives: Define input. Create a Visual Basic program that includes input.// Read the definition of **INPUT** at this website. @http://www.answers.com/topic/input Discuss input as it deals with computers with a student near you.

Take notes on INPUT, PROCESS, OUTPUT Look at input with Scratch Do a program that requires input in Visual Basic Program: **GrandTour.frm** Save to the desktop, upload to Gaggle digital locker, delete from desktop, empty recycle bin.

Fill in the **Frayer Model Map** Template for the Word/Concept of INPUT. Close programs, get desktop back to normal. Clean area, push in chair, put trash in can, and turn in Frayer Model Map of INPUT.

Tuesday September 14, 2010
1. 5, 10, 15,, 25, 2. Explain the pattern. 3. Explain the thinking process you used to figure this out. 4. 2,, 20, 29, 38, 5. Explain the pattern. 6. Explain the thinking process you used to figure these out.
 * Paper and Pencil:** Rewrite these sequences with the missing numbers filled in.

Experiment in Scratch Coordinate System in Scratch

List 3 things you learned about Scratch today.
 * Paper and Pencil:**