home

=Computer Programing I in Visual Basic --- CS602 --- Daily Assignments= __**Objective:**__ Students will make a program that opens files and compares the contents using nested For Next loops.
 * Monday - Friday 6/7-11/10**

__**Assignment:**__ __Program__: **WhichGrade.frm** Include the err_handler code from making MiniEdit better in the appropriate places. Let me know when you are ready to have the files necessary for opening and I will send them to you. Directions in notebook. __Paper and Pencil:__ **WhichGrade.frm Questions**

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

__**Objective:**__ Students will make a program better by preventing crashing.
 * Thursday 6/3/10**

__Paper and Pencil:__ Finish **Sports.frm Questions** If class.txt and sports.txt are not on the desktop, drag them from the Thawspace folder Friday May 28, 2010 onto the desktop.
 * Do Now: **

__**Assignment:**__ __Program__: **Sports.frm Make It Better** Apply what you have learned by **making the MiniEdit program better** by including the **error handler** in **mnuOpen** in your **Sports.frm** program. //An additional change is that you will need move the last 2 lines of code inside of the new// **If Then**//.//

Turn in **Sports.frm Questions**
 * __Ticket out the Door:__ **

__**Objective:**__ Students will analyze the use of nested loops and lists.
 * Monday 6/1/10**

Practice for Final Exam on SynchronEyes __Program:__ Finish **Sports.frm**
 * Do Now: **

__**Assignment:**__ __Paper and Pencil__: **Sports.frm Questions** If class.txt and sports.txt are not on the desktop, drag them from the Thawspace folder Friday May 28, 2010 onto the desktop.

Tell me if you will go to the Barnstormers baseball game on Wednesday June 2nd at 5:50 pm if you are awarded a free ticket for improving your work in class.
 * __Ticket out the Door:__ **

__**Objective:**__ Students will use files and nested For Next loops to find common data in 2 lists.
 * Friday 5/28/10**

If Summary.txt and WebSafety.txt are not on your desktop in the Monday May 24, 2010 folder in the Thawspace drive M for them and drag them onto the desktop. Finish **MiniEdit.frm** Make it Better
 * Do Now: **

__**Assignment:**__ __Program__: **Sports.frm** If class.txt and sports.txt are not on the desktop, drag them from the Thawspace folder Friday May 28, 2010 onto the desktop. Directions in notebook.

Tell me if you will go to the Barnstormers baseball game on Wednesday June 2nd at 5:50 pm if you are awarded a free ticket for improving your work in class.
 * __Ticket out the Door:__ **

__**Objective:**__ Students will make the MiniEdit program better by preventing crashing with defensive programming.
 * Thursday 5/27/10**

__**Assignment:**__ Change **MiniEdit.frm** by following the **Make It Better** directions in the notebook.

Turn in MiniEdit Questions
 * __Ticket out the Door:__ **

__**Objective:**__ Students will make the MiniEdit program better by preventing crashing with defensive programming.
 * Wednesday 5/26/10**

__**Assignment:**__ Change MiniEdit.frm by following the demonstration.

Turn in MiniEdit Questions
 * __Ticket out the Door:__ **

__**Objective:**__ Students will analyze a program that saves and load files.
 * Tuesday 5/25/10**

If Summary.txt and WebSafety.txt are not on your desktop in the Monday May 24, 2010 folder in the Thawspace drive M for them and drag them onto the desktop. Finish **MiniEdit.frm** Read and do everything on all 11 pages.
 * Do Now: **

__**Assignment:**__ __Paper and Pencil:__ **MiniEdit.frm Questions**

Turn in MiniEdit Questions
 * __Ticket out the Door:__ **

__**Objective:**__ Students will create a text editor that can save and load files.
 * Monday 5/24/10**

If Summary.txt and WebSafety.txt are not on your desktop in the Monday May 24, 2010 folder in the Thawspace drive M for them and drag them onto the desktop.
 * Do Now: **

__**Assignment:**__ __Program:__ **MiniEdit.frm** Read and do everything on all 11 pages. Directions in your notebook.

Turn in back work to Miss Hangen.
 * __Ticket out the Door:__ **

__**Objective:**__ Students will include a bad data Do While Loop in the Calculator program.
 * Friday 5/21/10**

Finish Questions on TestScores.frm
 * Do Now: **

__**Assignment:**__ __Program:__ **Calculator.frm** Change your existing program to include Do While Loops to catch bad data. Directions in your notebook.

Turn in Questions on TestScores.frm
 * __Ticket out the Door:__ **

__**Objective:**__ Students will analyze a program that uses a Do While Loop to catch bad data when data is being entered through an InputBox.
 * Thursday 5/20/10**

Finish TestScores.frm
 * Do Now: **

__**Assignment:**__ __Paper and Pencil:__ **Questions on TestScores.frm**

Turn in Questions on TestScores.frm
 * __Ticket out the Door:__ **

__**Objective:**__ Students will use a Do While Loop to catch bad data.
 * Wednesday 5/19/10**

Read the description of the Indefinite Average Problem on the top of page 1 of the directions for TestScores.fr __Paper and Pencil:__ 1. Will the data from the user be gotten through a textbox or an inputbox? 2. Will the test scores be displayed as output in a label or a listbox? 3. Must the user specify how many scores they are entering at the beginning? Yes No 4. To repeatedly get test scores the program will use which of these structures: For Next loop or Do While Loop? 5. The user will have the ability to correct invalid data because a loop will be used to continually ask for the correct data until it is provided. True False 6. Is the loop for checking for invalid data the outer loop or the inner loop of a set of nested loops? 7. How will the user indicate that there are no more scores to enter? 8. What range of numbers are valid test scores? 9. The label above the average output label will change from Current Average to what, after the last score has been entered and processed?
 * Do Now: **

__**Assignment:**__ __Program:__ **TestScores.frm**

__Paper and Pencil:__ See page 2 of the directions for TestScores.frm. 10. What is a 2-word general description of what these 5 lines of code do? lblAverageTitle = "Current Average" lblAverage = "" Finish = False Count = 0 Total = 0
 * __Ticket out the Door:__ **

__**Objective:**__ Students will use a Do While Loop.
 * Monday 5/17/10**

Read page 1 of the DoWhileRandom.frm directions. Discuss the difference between a Do While Loop and a For Next loop with another student. __Paper and Pencil:__ Explain how a Do While Loop is different than a For Next loop.
 * Do Now: **

__**Assignment:**__ __Program:__ **DoWhileRandom.frm**

__Paper and Pencil:__ Describe another circumstance in which you think you could use a Do While Loop.
 * __Ticket out the Door:__ **

__**Objective:**__ Students will use an input box and For Next loop to write a program to calculate grades. .
 * Thursday & Friday 5/13,14/10**

__Program__: **Grades.frm** __Paper and Pencil:__ **Grades.frm Questions**
 * __Assignment:__ **

**__Objective:__** Students will use an input box and For Next loop to write a program to calculate grades. .
 * Wednesday 5/12/10**

__Program__: **Grades.frm**
 * __Assignment:__ **

**__Objective:__** Students will use an input box and nested For Next loops.
 * Tuesday 5/11/10**

Finish back work: - Random For Loop Homework - Nested Questions - Pythag.frm - Calculator.frm
 * __Assignment:__ **
 * -** Program Evaluation Checklist for Factorial.frm Nested.frm

**__Objective:__** Students will use an input box.
 * Monday 5/10/10**

__**Assignment:**__ __Program:__ **Calculator.frm** Finish back work.

__**Objective:**__ Students will work with nested For Next loops to create a program to output Pythagorean Triples.
 * Friday 5/7/10**

__Paper and Pencil:__ The Pythagorean Theorem states that in a right triangle the sum of the squares of the legs is equal to the square of the hypotenuse. Pythagorean Triples are sets of whole numbers that can be the lengths of sides of right triangles.
 * Do Now: **


 * 1.** Which side of a right triangle is the longest?

Which of these sets are Pythagorean Triples?

1^2 + 2^2 = 3^2 1 + 4 = 9 5 = 9 False Not a right triangle -- not a Pythagorean Triple
 * Example: 1, 2, 3**

6^2 + 8^2 = 10^2 36 + 64 = 100 100 = 100 True Yes the lengths of sides form a right triangle, so 6, 8, 10 is a Pythagorean Triple.
 * Example: 6, 8, 10**

Show the steps to prove whether these are Pythagorean Triples.


 * 2.** 2, 3, 4


 * 3.** 9, 12, 15

__**Assignment:**__ __Paper and Pencil__: Finish **Nested Questions** __Program:__ **Pythag.frm**

__Turn in:__ Nested For Next Loop Questions Random For Loop Homework Program Evaluation Checklist for Factorial.frm**
 * __Ticket out the Door:__ **
 * Do Now

**__Objective:__** Students will work with nested For Next loops.
 * Thursday 5/6/10**

Finish **Nested.frm**. __**Assignment:**__ __Paper and Pencil:__ **Nested For Next Loop Questions**
 * Do Now: **

__Turn in:__ Random For Loop Homework Program Evaluation Checklist
 * __Ticket out the Door:__ **
 * Nested For Next Loop Questions

Wednesday 5/5/10** __**Objective:**__ Students will work with nested For Next loops.

Test your Factorial.frm program with the test data in the notebook, and fill out the Program Evaluation Checklist. __Program:__ **Nested.frm** Directions in the notebook.
 * Do Now: **
 * __Assignment:__**

__Turn in:__
 * __Ticket out the Door:__ **
 * Random For Loop Homework**
 * Program Evaluation Checklist**

**__Objective:__** Students will self-evaluate Factorial.frm.
 * Tuesday 5/4/10**


 * Do Now: **

Given the following declarations, write a the 5 lines of code needed to generate and output the factorial of a number in place of the comments in italic.

Dim Number As Integer Dim Factorial As Double Dim Factor As Integer //'initialize Factorial to 1 'start For loop to generate the factors from 1 to the Number 'use a similar assignment statement to accumulating a sum to calculate the factorial 'make the loop repeat 'output the factorial in a label//

__Program:__ **Factorial.frm** Finish the program using the template provided. Make sure you have comments with your code. Do the self-evaluation. Self-Evaluation/Grading Rubric** [|FactorialRubric.doc]
 * __Assignment:__ **
 * Show pride in your work by making your program the best it can be!!!!!!

__**Homework:**__ **Random For Loop Homework** is due today. [|RandomForLoopHomework.doc]

Turn in your homework paper, Program Evaluation Checklist, Do Now, and Ticket out Door. __Paper and Pencil:__ 1. How do you feel about your program? 2. What do you understand better today than you did a week ago?
 * __Ticket out the Door:__ **


 * Thursday 4/29/10 & Monday 5/3/10**

__New Vocab from Word Wall:__ Factor, Factorial

__**Objective:**__ Students will write a program that applies the use of a For Next loop and the concept of accumulating with a variable. Students will **extrapolate** from the concept of accumulating a sum to devise a new assignment statement for generating a factorial of an unknown number. Students will write a program to calculate factorials.


 * Do Now: **

__Read__ the **Factorial Do Now Answer Key with Explanations** in your notebook to refresh your memory. __Discuss__ with you partner what progress you have made on your program and what you have yet to do. __Paper and Pencil:__ Write what your plans are to finish the program to make it the best it can be.
 * Monday:**

Do the Quiz School activity in blue below. Make sure to view the correct answer and read the explanations after doing each question. These tables are needed for questions 1 and 6 respectively. Type your name in the box and start. media type="custom" key="5994993"
 * Thursday:**

**__Assignment:__** __Program:__ **Factorial.frm** Your and your partner will take turns at the computer. Detailed directions are in your notebook. Include meaningful comments with your code to help other students understand what you program is doing. Self-Evaluation/Grading Rubric** [|FactorialRubric.doc]
 * Show pride in your work by making your program the best it can be!!!!!!

[|RandomForLoopHomework.doc]
 * __Homework:__** **Random For Loop Homework** is due Monday.

__Paper and Pencil:__ **1st day:** 1. Describe one of the thinking processes you used to work on this program. 2. How far did you get? or 2. What do you feel confident about? or 2. What are you struggling with?
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

__Paper and Pencil:__ **2nd day:** 1. How do you feel about your program? 2. What do you understand better today than you did a week ago?

__**Objective:**__ Students will dissect a program that uses a For loop and Mod to find prime numbers.
 * Wednesday 4/28/10**

Matching: Think it over by yourself. Then make sure everyone in your row is in agreement and understands it, so that whoever I call on to explain it will be able to.
 * Do Now: **

Finish **Prime.frm** __Paper and Pencil:__ **Prime.frm Questions**
 * __Assignment:__**

__Paper and Pencil:__ **Random For Loop Homework** (due Friday)
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

**__Objective:__** Students will use the counter assignment statement.
 * Tuesday 4/27/10**

**Do Now:**

__Paper and Pencil:__ 1. What do you know about what prime numbers are? 2. Name a programming structure you think you could use in a Visual Basic program that determines which numbers are prime. 3. Give a reason for why you think that structure would be useful for this task. __**Assignment:**__ __Program:__ **Prime.frm** Directions in the black notebook. Behind the 4 pages of directions is a single page with the code larger than it appears on page 3.

Upload programs to your Gaggle digital locker. Empty the recycle bin. **
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * <span style="color: #ff0000; font-family: 'Comic Sans MS',cursive;">Delete from the desktop.

__**Objective:**__ Students will use the counter assignment statement.
 * Monday 4/26/10**

Read the **Notes: Counting with a COUNTER Assignment Statement** Discuss how Count = Count + 1 works, with another student. __Paper and Pencil:__ Explain your understanding of the counter assignment statement. __Program:__ **CountSquares.frm** You must type the comments.
 * Do Now: **
 * __Assignment:__**

__Paper and Pencil:__ Matching: _ 1. Count = Count + 1 _ 2. Sum = Sum + Number
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

A. Accumulating a sum B. Counting

3. Explain why you can use the same variable on both sides of the assignment operator (=).

Turn in your papers.

__**Objective:**__ Students will use exponential notation in programs.
 * Friday 4/23/10**

**Do Now:** Remember to type your first and last name into the name box before starting the online activity. media type="custom" key="5934605" Did you read the explanations with the answers?

**__Assignment:__** __Program:__ **Gravity.frm** Directions in notebook.

Upload programs to your Gaggle digital locker. Empty the recycle bin. **
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * <span style="color: #ff0000; font-family: 'Comic Sans MS',cursive;">Delete from the desktop.


 * Thursday 4/22/10**<span style="font-family: Arial,Helvetica,sans-serif;">

Read about scientific notation and the comparable appropriate exponential notation used on calculators and in computer programming at these 2 websites. @http://www.nyu.edu/pages/mathmol/textbook/scinot.html @http://www.purplemath.com/modules/exponent3.htm Practice scientific notation and exponential notation with these 2 websites. @http://janus.astro.umd.edu/astro/scinote/ @http://www.aaamath.com/dec71i-dec2sci.html
 * Do Now: **

Do the following conversions on a piece of paper then test them with the ExponentialNotation.exe program in the thawspace. Write the number in all 3 notations on your paper: regular notation, scientific notation, and exponential notation.
 * __ Assignment: __**



Finish **ResultString.frm** Turn in all paper and pencil assignments.
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

__Objective:__ Students will use For Next loops and ListBoxes to //accumulate sums// in programs.
 * Wednesday 4/21/10**

Do Now: __Study this example: Paper and Pencil:__

__Program:__ Finish **RandomList.frm** __Paper and Pencil:__ **RandomList.frm Questions** __NEW PROGRAM:__ **ResultString.frm**
 * __Assignment:__**

__Paper and Pencil:__ On your Do Now paper, explain what is happening in the **ResultString.frm** program. Turn in your papers.
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

__Objective:__ Students will use For Next loops and ListBoxes to //accumulate sums// in programs.
 * Tuesday 4/20/10**

Do Now: Read the **Notes: Accumulating a Sum** Refer to your directions and comments in the **Accumulate.frm** and **RandomList.frm** programs to answer these questions.

1. Define accumulate.

2. Which of these lines of code is used for //__accumulating__// a sum? A. Sum = Sum + Number

B. Sum = A + B + C + D

3. Draw a picture of the ListBox tool.

__Program:__ Finish **RandomList.frm** __Paper and Pencil:__ **RandomList.frm Questions**
 * __Assignment:__**

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

**__Objective:__ Students will use For Next loops and ListBoxes to //accumulate sums// in programs.**
 * Monday 4/19/10**

**Do Now:**

What output will be produced by this code? Click here to type your answer.

**__Assignment:__** __Paper and Pencil:__ Finish **Display.frm Questions on For Next Loops** packet. __Program:__ Finish **RandomList.frm** __Paper and Pencil:__ **RandomList.frm Questions**

On the back of your packet write 3 lines about a real programming situation in which you think a For Next loop could be used. Turn in your packet.
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

**__Objective:__ Students will use For Next loops and ListBoxes to //accumulate sums// in programs.**
 * Thursday & Friday 4/15,16/10**

**Do Now:** **Think-Pair-Share:** Read **Notes: Accumulating a Sum** in your black notebook. Discuss what you read with another student. Look at the pictures below and answer the questions on the form.

Tell which of these pictures is a more accurate depiction of accumulating a sum.

media type="custom" key="5866197"

__ **Assignment:** __

Program for Thursday: **Accumulate.frm** The directions are in the notebook on the page after the notes. Program for Friday: **RandomList.frm** The directions are in the notebook.

You will be using a **//new object//** called a **ListBox**. The format for the name of a ListBox is a word that represents what it will hold followed by the word List, so in the Accumulate.frm program your ListBox will have its name property changed to **SumList**, and in the RandomList.frm program your ListBox will have its name property changed to **RandomList**.


 * Ticket out Door:** Include the comments in the code of the program and upload it to your Gaggle digital locker.

Upload programs to your Gaggle digital locker. Empty the recycle bin. **
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * <span style="color: #ff0000; font-family: 'Comic Sans MS',cursive;">Delete from the desktop.

**__Objective:__ Trace code containing For Next loops.** Paper and Pencil:** Display.frm Questions on For Next Loops
 * Wednesday 4/14/10**
 * __ Assignment: __

**__Objective:__ Trace code containing For Next loops.**
 * Tuesday 4/13/10**

**Do Now:** __Example__:

1. What will be the output for this For Next Loop?

2. Write a For Next Loop to generate the even numbers from 4 to 140.


 * __Assignment:__**
 * Paper and Pencil:** Display.frm Questions on For Next Loops

Turn in papers. Upload programs to your Gaggle digital locker. Empty the recycle bin. **
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * <span style="color: #ff0000; font-family: 'Comic Sans MS',cursive;">Delete from the desktop.

**__Objective:__ Incorporate For Next Loops into programs for various purposes.**
 * Monday 4/12/10**

**Do Now:** 1. What will be the output for this For Next Loop?

2. Write a For Next Loop to print the numbers from 21 to 35.

Display For Next Loops Program: **Display.frm**
 * __Assignment:__**

Turn in papers. Upload programs to your Gaggle digital locker. Empty the recycle bin. **
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * <span style="color: #ff0000; font-family: 'Comic Sans MS',cursive;">Delete from the desktop.

**__Objective:__ Demonstrate understanding of menu control arrays, select case, and for next loops.**
 * Friday 4/9/10**

**Do Now:** Finish **License Questions**

Programs: **Format.frm Stock.frm**
 * __Assignment:__**

Turn in papers. Upload programs to your Gaggle digital locker. Empty the recycle bin. **
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * <span style="color: #ff0000; font-family: 'Comic Sans MS',cursive;">Delete from the desktop.

**__Objective:__ Demonstrate understanding of menu control arrays, select case, and for next loops.**
 * Thursday 4/8/10**

**Do Now:** Finish **License.frm**

Paper and Pencil: **License Questions** Discuss features in License and License Questions
 * __Assignment:__**

Finish any back work.
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

**__Objective:__ Demonstrate understanding of menu control arrays, select case, and for next loops.**
 * Wednesday 4/7/10**

**Do Now:** Finish **License.frm**

Paper and Pencil: **License Questions**
 * __Assignment:__**

Finish any back work.
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **

**__Objective:__ Use a Select Case structure to code a menu control array.**
 * Tuesday 4/6/10**

** Do Now:** **Paper and Pencil:** Get into Microsoft Word and look at the menu items and the submenu categories. 1. Are all submenu items able to be used at any time? Yes No 2. What do submenu items look like when they are not enabled? 3. Use View -- Toolbars. What is to the left of some of the choices? 4. Under, View -- Toolbars, click on Drawing. When you choose View -- Toolbars again what happens?

Program: **License.frm** Do not type the ... Use the --> button to make the submenu items.
 * __Assignment:__**

Explain what you think a menu control array is**.** What programming structure can be used to do the same thing with each menu control array item? (See page 4 of the directions for License.frm.)
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * Paper and Pencil:**

**Thursday 4/1/10 Objective:** Lorem ipsum dolor sit amet, consectetur adipiscing elit.

<span style="background-color: #000080; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">**Do Now:** Fusce pellentesque semper purus vehicula dapibus.

Quisque.frm Form here **​**
 * __ Assignment: __**

Paper and Pencil:** Vivamus blandit volutpat nulla in congue. Integer aliquet orci eu justo tincidunt auctor blandit tellus mollis.
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__

**__Objective:__ Create a menu and use the Select Case structure in place of repeated ElseIf's.**
 * Wednesday 3/31/10**

**Do Now:** **Think About It:** Do multiple If Then Else structures and ElseIf 's ever confuse you? Would you like to try a different switching structure? The **Select Case** structure works with a collection of options that are based on an interger value.
 * Select Case** cannot be used with a range of data like If Then Else and ElseIf 's.

Program: **ClassCase.frm** Work with the partner you had for the **Class.frm** program to make revisions to Class.frm. Have me check your program when you are done.
 * __Assignment:__**

Do this with your partner and put both names on the paper.
 * <span style="background-color: #800000; color: #ffff00; font-family: Arial,Helvetica,sans-serif;">__Ticket out the Door:__ **
 * Paper and Pencil:**
 * Explain how you think the Select Case structure works.**