Visual Basic
Welcome to the 2011-2012 School Year!!!


P1300007.jpg
Pi Day
You can see this mini-mural in the display case by the Ideas Center



You are not alone, we are a community of programmers.


"In the one and only true way. The object-oriented version of 'Spaghetti code' is, of course, 'Lasagna code'. (Too many layers)."
- Roberto Waltman.




Current Assignments


Day
Date
Class work
Homework
136
4/16

Write a python program to display the menu for your favorite type of food. The program should start by prompting the user for two options:

1. Adult Menu
2. Children Menu

These two options will direct the user to two different menus. In each of these two menus display 3 options of food with prices. Prompt the user for their selection and how many of each. Finally, display the final selections with the total price.




Day
Date
Class work
Homework
94
2/6

Chapter 8
Arrays - 1D
Enter program on fig 8.2 and 8.3
.

Read pages 335 through 341
95
2/7

Chapter 8
Arrays - 1D
Table for program StudentRoll in Fig 8.5
.

Finish up the table for program StudentRoll in Fig 8.5

96
2/8

Chapter 8
Arrays - 1D

.

Exercises 8.3 a)-e)
Write a paragraph explaining the algorithm in programs from Fig 8.3 and Fig 8.4
Write the code for this assignment.
Note: do not use an IDE
97
2/9

Chapter 8
Arrays - 1D
Work on homework assignment in your IDE
.

Write the pseudocode and draw a flowchart to sort an array of 3 integers.
Write a console application to sort an array of 3 integers.
.
98
2/10

Chapter 8
Arrays - 1D
Write a console application to sort an array of 3 integers.
Work on Exercise 8.5

Print out your work and hand it in to the substitute teacher with your homework.
.
99
2/13

Chapter 8
Arrays - 1D
Arrays as counters
.

Arrays as counters
Write the Food Rating application:
1. Create an array counter of 10 elements
2. In a loop prompt 20 students for the cafeteria food rating
3. Display the 3 top ratings followed by the rest of the ratings

.
100
2/14

Chapter 8
Arrays - 1D
Arrays as counters
Enter the program StudentPoll in Figure 8.5
.
101
2/16

Chapter 8
Arrays - 1D
Arrays as counters
Enter the program BarChart in Figure 8.6
Answer the following questions and hand them in:
1. What is the purpose of array1(i) in line 14?
2. Could you replace the for loop in line 14 with a while? Write the code.
Work on the following exercise:
Write a program similar to BarChart to draw two different shapes:
Shape 1:
*****
****
***
**
*
*
**
***
****
*****
Shape 2
***** *****
****    ****
***       ***
**          **
*             *

Note: you must use arrays to draw both shapes
.


Read up to page 346 and aswer the following question:
How is the array used in program RollDie in Figure 8.7
102
2/21

Chapter 8
Arrays - 1D
Arrays as counters
Enter program RollDie in Figure 8.7
Discussion about exercise 8.4 at the end of the chapter
.


Without using an IDE write a program, IntRan to create a table of random digit numbers:
1. Create an array of 20 zero integer elements.
2. Assign a random number from 0 to 9 to each of the elements.
3. Using a loop, display 5 lines of 20 digits each with the content of the array. Separate the digits with a blank space every 5 digits.

Note: re-randomize every time you start a line

The ouput should look like this:

38954  01856  29080  43678
45971  37180  32891  45387
12367  54247  00468  23645
24156  73901  33691  09581
45912  71054  48021  43890
.
103

2/22

Chapter 8
Arrays - 1D
Arrays as counters
Case Study: Card shuffling and Dealing Simulation
Figures 8.8 and 8.9: Card and DeckOfCards classes
.
104
2/23

Chapter 8
Arrays - 1D
Arrays as counters
Case Study: Card shuffling and Dealing Simulation
Figures 8.8 and 8.9: Card and DeckOfCards classes
.

Without using an IDE write the pseudocode and program for exercise 8.5
105
2/24

Chapter 8
Arrays - 1D
Arrays as counters
Case Study: Card shuffling and Dealing Simulation
Figures 8.8 and 8.9: Card and DeckOfCards classes
.

Without using an IDE write the pseudocode and program for exercise 8.7
106
2/27

Chapter 8
Arrays - 1D
Enter your program for exercise 8.5
.

107
2/28

Chapter 8
Arrays - 1D
Enter your program for exercise 8.7
.
108
2/29

Chapter 8
Arrays - 1D
The For Each loop
Case Study: Using an Array to Store Grades Figures 8.13 and 8.14
.

Read up to page 358
109
3/1

Chapter 8
Arrays - 1D
The For Each loop
Case Study: Using an Array to Store Grades Figures 8.13 and 8.14
.
110
3/2

Chapter 8
Arrays - 1D
Linear search Figures 8.16 and 8.17
.


Read up to page 362. Skip sorts.
111
3/5

Chapter 8
Arrays
Linear search Figures 8.16 and 8.17
.

Without using an IDE write the pseudocode and program for exercise 8.8

112
3/6

HSPA
.
113
3/7

HSPA
.

114
3/8

HSPA
.

Complete questions up to number 14.
115
3/9

Pi day Activity - Competition
Find the specification in the sharebox
.

Complete questions up to number 20.
116
3/12

Pi day Activity - Competition
Find the specification in the sharebox
.
117
3/13 - 3/14

Pi day Activity

.


Pi day Activity - Preparation
Decorate your digit with one of the following topics:

Computation historical events happening at the same time as Pi being defined.

Mathematics-computation historical event equivalent to Pi in terms of the impact in math or related fields.

Indirect application between Pi and computer science.

Comparison between Pi and a computer science concept, definition, or equivalent.

Direct connection between Pi and computer science.

Direct application between Pi and computer science.
.
119
3/15

Chapter 8
2D Arryas
.








Day
Date
Class Work
Homework

94

2/3/2012

Class Work:


A group of Princeton University Computer Science students led by Max Rabinovich will be holding a java programming workshop on Mondays and Wednesdays starting at 3 in room 242. The workshop will start from basic concepts to advanced and sophisticated implementations. Projects will include N-body simulations, Graphical Representations using the StdDraw library, Data Types I and II, and Guitar Hero simulator.

Students from my classes who join the workshop will grade extra credit for the remaining marking periods.


.


95
2/6

Class Work:
SoftSolutions Programming Exercise



.        



Day
Date
Class Work
Homework

72

1/3/2012

Class Work:
Chapter 5 Project
Create a window application that simulates a calculator.
It should have the following functions:
     addition
     subtraction
     multiplication
     division
     power
     square root
     log
     anti-log or 10 to the power of x
Note: all result should be displayed in a Message Box
.


Write a code snipped and the flowchart to calculate the power of a number without using the Math.Pow function.
Use the following variables: count, base and exponent.
Create a table of variables' values for the following case: base = 5, exponent = 4. Use a For-loop
73
1/4

Class Work:
Chapter 5 Project


Write a code snipped to calculate the factorial of a number n. Draw a flowchart and a table of variables' values. Use the following variables: count, factor and factorial. Show 4!

Factorial is defined as follows:
     n! = n(n-1)(n-2)...(2)(1)
.        
74
1/5

Chapter 6
Control Statements part 2
For...next  

Write a code snipped to calculate the probability number called combinations. Draw a flowchart.
Combinations is defined as follows:
    172010_90645_0.png
75
1/6

Chapter 6
Control Statements part 2

Class Work:
Figures 6.2, 6.5 and 6.8
Exercise 6.5
.

Write a code snipped to calculate the factorial of a number n using the For...Next counter-controlled statements.
Factorial is defined as follows:
     n! = n(n-1)(n-2)...(2)(1)
76
1/9

Chapter 6
Control Statements part 2
UML Activity Diagram
MessageBox icons
Formatting currency output
Select ...Case

Class Work:
Write a windows application to calcualte the probability number combinations. Use the For...Next.
The name of the application should be YI_Combinations. Display the result in the Message Box.
.

Write a program to calculate the Permutations of a number n using the For...Next counter-controlled statements.
Permutation is defined as follows:
   172010_90541_0.png
77
1/10

Chapter 6
Control Statements part 2
UML Activity Diagram
MessageBox icons
Formatting currency output
Select ...Case
Class Work:
Type the program in figure 6.9
.

Understand figures 6.9 and 6.10 for a quiz tomorrow. The questions will be about what the property does, what the methods do and how you run the application.

78
1/11
Chapter 6
Control Statements part 2

Class Work:
Exercise 6.4
.


Write pseudocode for exercise 6.8
Do Self-Review exercise 6.1


79
1/12
Chapter 6
Control Statements part 2

Class Work:
Exercise 6.4
.

Write pseudocode for exercise 6.9
Do Self-Review exercise 6.2
80
1/13

No School
.
81
1/16

No School
.
82
1/17

Chapter 6
Control Statements part 2

Class Work:
Exercise 6.4
and
Exercise 6.6

.


Do Self-Review exercise 6.3

Write your own program that calculates the modulus of two numbers. For example 5 Mod 2 is 1 and 4 Mod 2 is 0.

83
1/18

Chapter 6
Control Statements part 2
Class Work:
Exercise 6.7 - 6.8 Discussions
.





Write a program that calculates all the prime factors of a number. For example if the user enters 48, the program should display the number followed by the equal sign and its factors:
     48 = 2 2 2 2 3  
.
84
1/19

Chapter 6
Control Statements part 2
Class Work:
Exercise 6.9 - 6.13
.

Write a program without the help of the IDE. The program should prompt the user for a dividend and a divisor. Your program calculates the quotient and the remainder and display both as a part of message.
Note: You can write it in main.
.
  
85
1/20

Chapter 6
Control Statements part 2
Test review
.

86
1/23

Chapter 6
Control Statements part 2
Chapter 6 Test
.

Self-Review Exercises 2.1 on page 69
Self-Review Exercises 2.2 on page 69
The answer should be in full sentences.
87
1/24

Midterm Review
Self-Review Exercises

Writing classes and modules for OOD applications
.

Self-Review Exercises 3.1 and 3.2 on page 121
Self-Review Exercises 4.1 and 4.2 on page 161
The answer should be in full sentences.
88
1/25

Midterm Review
Self-Review Exercises 6.1, 6.2 and 6.3 on page 265

Writing classes and modules for OOD applications
.

Self-Review Exercises 5.1 and 5.2 on page 219
The answer should be in full sentences.
89
1/26

Midterms start
.
90
1/27

Midterms
.
91
1/30

Midterms
.
92
1/31

Midterm: 40 questions from the review material and an OOD programming assignment

.



Day
Date
Class Work
Homework
51
11/21

Chapter 5
Control Statements: Part I
Type in program in fig 5.4
.

Read pages 166 through 176
52
11/22

Chapter 5
Control Statements: Part I
Type in program in fig 5.5 and 5.6

.

Read pages 177 through 180

Write on paper a new application YI_Powers. This program prompts the user for a number. Use the program PowersOfThree to display the power of that number that is less than or equal to 100.

53
11/23

Chapter 5
Control Statements: Part I

Write an application, YI_Guess, using while keyword. Keep a number between 0 and 9 in a variable called theNumber. Prompt the user for a number and if it is smaller than theNumber, display a message "too low" or if it is bigger, "too high". Prompt the user if it wants to continue guessing.
a. Promp the user once to play
b. Keep track of how many guesses
c. Prompt the user to play again.
d. Keep track of how many times the user
    plays a new game and calculate a
    proficiency level by dividing the number     
    of plays by the total number of guesses.
e. Display all information when the user does
    not want to play anymore games
.
54
11/24

turkysm.gif

Happy Thanksgiving
.
55
11/28


Same as YI_Guess but with a do until. Call these two program YI_GuessDU
Exercise 5.9
.

Draw your own flowchart for the YI_Guess from 11/23
56
11/29

Write an application, YI_Calc1, to add or subtract two numbers. Use either a while or do-until the user enters exit. After the program returns the result, the program should prompt the user whether it wants to continue adding or subtracting or just exit.
Exercise 5.9
.

Draw your own flowchart for the YI_GuessDU from 11/29
57
11/30



12/1

.



Sentinel-Controlled Repetition
.


58
12/2



Create a Power Point Presentation with the following topics:

How technology has an impact on a field of your choice.

Use images and short paragraphs.
The ppp should have at least 5 slides.
Include the URL's for each source.
.

.

Pseudocode for Exercise 5.9
Self-Review Exercise 5.1
59
12/5

Exercise 5.9


.

Read page 189 and 190
Self-Review Exercise 5.2
60
12/6

Write an application like 5.9. This application, YI_VelocityCalc calculates velocity rate. Just like in 5.9 prompt the user for the number of miles driven and the number of hours per trip. Your application should calculate the velocity per trip and the total velocity of all the trips when the user enters -1 to exit.
.

Self-Review Exercise 5.3
Draw a flowchart for  YI_VelocityCalc.
Test your flowchart by using a Test Suite.

.
61
12/7

Exercise 5.10
.

Draw a flowchart for  an application, YI_DailyBalance, that calculates the daily balance of an account. Prompt the user for deposits and withdrawals or -1 to exit. When the user enters -1, display the end of the day balance.
NOTE: display the balance after every input.
Test your flowchart by using a Test Suite.
.
62
12/8

Exercise 5.11

.

Write on paper the program for YI_DailyBalance
IMPORTANT: DO NOT USE ANY IDE
63
12/9

Write a class Power, that calculates the power of a given number. The constructor takes the base and the exponent. A method called CalcPow does the calculation and displays the result. Write a Module for the test class, PowerTest. Your PowerTest class should ask the user for input or exit by using a sentinel. This application should be named: YI_Calculator.



Create a table and trace the  values for the following code snippet

Dim kounter As Integer = 0
       Dim num1 As Integer = 1
       Dim num2 As Integer = 0
       Dim result As Integer = 0
While kounter < 4
     result += num1 + num2
     num1 *= 2
     num2 += 2
     kounter += 1    
End While

Write the pseudocode for Exercise 5.12
 .
64
12/12

Exercise 5.12
.

Write the pseudocode for Exercise 5.13
Create a table and trace the  values
.
65
12/13

Exercise 5.13


1. Write a statement or a set of statements to find the product of even integers from 4 to 98. It should display each product and the final result.

2. Write a statement or a set of statements to find the factorialof a number.  Factorial of n is defined as n(n-1)(n-2)(n-3)...(1).
Note: factorial of zero is 1 by definition

Write the pseudocode for Exercise 5.14
Create a table and trace the  values
.
66
12/14

Exercise 5.14 or current assignment

.

Write the pseudocode for Exercise 5.15
Create a table and trace the  values
67
12/15

Exercise 5.15 or current assignment



Write the pseudocode for Exercise 5.16
Create a table and trace the  values
.
68
12/16


Complete your classwork and homework assignments.
Make sure all your work is in your folder/binder.
.

Write the pseudocode for Exercise 5.17
Create a table and trace the  values
.
69
12/19

Complete your classwork and homework assignments.
Make sure all your work is in your folder/binder.


Write a snippet to calculate the fibonacci sequence up to n terms.
Example:
if n = 6 then your prog should display:

1 1 2 3 5 8

Create a table and trace the  values
.
70
12/20

Work on incomplete assignments on Chapter 5. If you are finished with all assignments, please get Chapter 6 packet from my computer desk. It should be next to the computer.

If you are working on chapter 6, start by creating a new folder in your name drive and enter the programs given as examples.


.

Write the pseudocode for Exercise 5.18
Create a table and trace the  values
71
12/21

Chapter 5 Test Review
.
72
12/22

Chapter 5 Test
Folder/Binder will be graded today.
.
73
12/23

Work on incomplete assignments on Chapter 5. If you are finished with all assignments, please get Chapter 6 packet from my computer desk. It should be next to the computer.

If you are working on chapter 6, start by creating a new folder in your name drive and enter the programs given as examples.
.

Enjoy the winter break!!
christmas-animated-gifs-06.gif

happy-new-year-animated-gif-2.gif




Day
Date
Class Work
Homework
25
10/12

Chapter 4
.

Read pages 122 through 127
.
26
10/13

Chapter 4
Introduction to Classes and Objects
.

Write two more Classes from OODActivity
27
10/14

Chapter 4
Introduction to Classes and Objects
Draw a flowchart for the Elevator Sytstem for one person starting on the first floor.
Write the PercentApplication
.


Split the CalcPercent method into two methods:
CalcPercent and CalcDisplay

28
10/17
.
Chapter 4
Introduction to Classes and Objects
Type the PercentApplication:
1. It should be console application
2. Main is entered in the module
3. Percent class is entered in a class. Right click on the project name, add an new item and select a class.
.

29
10/18

Chapter 4
1. Test your PercentApplication with the two methods you wrote for homework.
2. Write a new console application similar to PercentApplication but this application calculates the Celsius temperature when Farenheit temeperature is entered by the user.

.

30
10/19
.
Chapter 4
Introduction to Classes and Objects
The GradeBook Applcication
Update GradeBook application from figures 4.4 through 4.16
.

Read pages 128 through 134
Self-Review Exercises 4.1 a) through i)
Writing Vocabulary: Write down the words and explanation of the terms on page 157 from access modifier to client of a class.
.
31
10/20
.
Chapter 4
Introduction to Classes and Objects
The GradeBook Applcication
Update GradeBook application from figures 4.4 through 4.16
.

Write the Time Converter Application on paper

This application prompts the user for a time in Military form and displays back the standard time.

timeApplication is a console application.

TimeConv is a class with one attribute and two behaviors.

The name of the attribute is time and the behaviors are: calcTime and displayCalc.

Implement a Module named TimeConversion and create an object of the class TimeConv. Call the methods to carry on the application.
.
32
10/21
.
Chapter 4
Introduction to Classes and Objects

.

Write the Measure Converter Application on paper

This application prompts the user for a length in centimeters and displays back the length in inches.

MeasureConverterApplication is the name of the project and it is a console application.

MeasureConverter is the name of the class. It has one attribute, two behaviors and one constructor.

The name of the attribute is measure and it is an integer.
The name of the behaviors are:
   measureCalc and displayMeasure

Implement a Module named MeasureConversion and create an object with the measure the user will input. Call the method to do the calculation and the method to display the converted measure.

.
33
10/24
.
Chapter 4

Introduction to Classes and Objects
The GradeBook Applcication
Update GradeBook application from figures 4.4 through 4.16


Exercise 4.9 on page 159
Exercise 4.10 on page 159
.


Read pages 135 through 145

Writing Vocabulary: Write down the words and explanation of the terms on page 157 from consistent state of an object to extensive language.

Writing Vocabulary: Write down the words and explanation of the terms on page 157 from Get accessor of a property to invoke a method.

Writing Vocabulary: Write down the words and explanation of the terms on page 157 from Length property of class String to New keyword.
.
34
10/25
.
Chapter 4
Introduction to Classes and Objects
The GradeBook Applcication
Update GradeBook application from figures 4.4 through 4.16

Exercise 4.11 on page 159
.

Writing Vocabulary: Write down the words and explanation of the terms on page 157 object-creation and from parameter expression to reference type.

Self-Review Exercises 4.1 j) through p)
35
10/26
.
Chapter 4
Introduction to Classes and Objects
The GradeBook Applcication
Update GradeBook application from figures 4.4 through 4.16

Exercises 4.12 on page 159
.
36
10/27
.
Chapter 4
Introduction to Classes and Objects
The GradeBook Applcication
Update GradeBook application from figures 4.4 through 4.16

Exercises 4.13 on page 159
.
37
10/28
.
Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.

Writing Vocabulary: Write down the words and explanation of the terms on page 157 from Return statement   to value type.

Self-Review Exercises 4.2 a) through d)

38
10/31
.

Enjoy Halloween!
Sorry I could not be there.

ANImummy.gif

Chapter 4
Introduction to Classes and Objects

.
39
11/1
.
Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.
40
11/2

Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.
41
11/3

Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.

Exercises 4.5 and 4.6
42
11/4

Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.

Exercises 4.7 and 4.8

Write on paper an application with Object Oriented Design (OOD). The application, Chairs, contains two files:
One file: A class, Chair
Class Chair has one attribute, the only instance field, numberOfLegs. This attribute’s type is Integer

A property to ensure consistent states: always positive numberOfLegs. It should display a message “Invalid number of legs. This chair has been created with one leg.” And do so.

Chair has one behavior, the only method: changeNumOfLegs. This method, like the property, will not allow for the number to be less than 1.

The other file: Module, Main
In main, create two objects of the class Chair, one of them, myChair, is instantiated with 2 legs. The other one, yourChair, is instantiated with -3 legs.
Change both objects to have 4 legs.
.
43
11/7

Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.

Write on paper an application with Object Oriented Design (OOD). The application, Cars, contains two files:
A class: Car
Class Car has two attributes; the two instance fields for this class are numberOfDoors (Integer) and maker (String). The class also has the properties to ensure the two fields are neither 0 nor blank.

Class Car has two behaviors, the two methods for this class are changeNumberOfDoors and changeMaker and like the properties for these fields, they will not allow changes to zero or blank fields.

A Module: Main
Create two objects of the class Car, one of them, myCar, is instantiated with two doors and Nissan. The other, yourCar, is instantiated with 0 doors and “ ”.
Change both objects to have 5 doors and Subaru.
.
44
11/8

Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.

Write on paper an application with Object Oriented Design (OOD). The application, UnitConv, contains two files:

A class: LengthUnits
Class LengthUnit has two attributes; the two instance fields for this class are feet (Single) and inches (Single). The class also has the properties to ensure the two fields are greater than or equal to zero.

Class LengthUnit has two behaviors; the two methods for this class are changeUnits and DisplayUnits. The changeUnits method will make the conversion from feet to meters and inches to centimeters. The DisplayUnit method will display the new units on the screen.

A Module: Main
In Main, your program will prompt the user for two inputs: feet and inches and create an object of the class LengthUnit then, it will call (invoke) the methods to convert the units and to display then.

Note: if you did this assignment in class, noticed that I made changes to the specifications. It is ok to leave it the way you have done it already.
.
45
11/9

Chapter 4
Introduction to Classes and Objects
Continure working on exercises

Write on paper an application with Object Oriented Design(OOD). The application, TravelAgency, contains two files:

A class: Trip
Class Trip has two attributes; the two instance fields forthis class are numberOfPeople(Integer) and distination (String). The class alsohas the properties to ensure the two fields are neither 0 nor blank.

Class Trip has two behaviors, the two methods for this classare changeNumberOfPeople and changeDestination and like the properties forthese fields, they will not allow changes to zero or blank fields.

A Module: Main
Create two objects of the class Trip, one of them, myTrip,is instantiated with three people and Portugal. The other, yourTrip, isinstantiated with 0 people and “ ”.
Change myTrip to 4 people and Argentina for destination.
Change yourTrip to anythingyou like.
.

46
11/14

Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.


47
11/15

Chapter 4
Introduction to Classes and Objects
Continure working on exercises
.


.
48
11/16

Complete all assignments
.
49
11/17

Chapter 4 Test Review

.
50
11/18

Chapter 4 Test

.



Day
Date
Class Work
Homework
9
9/20
.
Chapter 3
Writing console applications
.

Write the flowchart for program the program in fig 3.16
.
10
9/21

Chapter 3
Writing console applications
.

11
9/22
.
Chapter 3
Program in listing 3.15 and 3.16
.

Read pages 76 through 93
Answer the Self-Review Exercises  on 3.1 (a-i) on page 121 on paper.
.
12
9/23

Chapter 3
Program listing Fig 3.28
Note: Page 103 has instructions on how to import the System.Window.Forms
.

Read up to page 103
Answer the Self-Review Exercises  on 3.1 (j-o) and 3.2 on page 121 on paper.
13
9/26

Chapter 3
Program AlgebraOperation2: the program should ask
1.  Two numbers: number1 and number2 and calculate the number1 percentage of number2 and display it.

2. Three numbers: number1, number2 and number3 and calculate the following expression: number1 * number2 + number3. Display the result.

3. With the same three numbers calculate the following expression:
number1 * ( number2 + number3)
Display the result.

Programs 3.9 through 3.11 in the back of the chapter.(page 123)




14
9/27

Chapter 3
Adding integers
Memory
Arithmetic
Decision Making
Programs 3.9 through 3.11 in the back of the chapter.(page 123)
.

Read up to page 105
Answer the Self-Review Exercises  on 3.2 a through e on page 121 on paper.
15
9/28

Chapter 3
Programs 3.12 through 3.14 in the back of the chapter.(page 123)

Decision Making
.

Exercise 3.3 on paper
16
9/30

Chapter 3
Programs 3.15
.


Exercise 3.4 and 3.5 on paper
17
10/3

Chapter 3
Programs 3.15
.

Exercise 3.6 and 3.7 on paper
18
10/4

Chapter 3
Programs 3.15 and 3.16
.

Max's flowchart pseudocode
Exercise 3.8 and 3.9 using pseudocode
19
10/5

Chapter 3

Programs 3.15

If you are finished with all assignments,

Write a console application that asks the user to guess a number. If it guesses right, it should it display a message: “You win!”. Otherwise, it should display: “You lose!”
.
20
10/6

Chapter 3


If you are finished will the assignments:
Draw a tic-tac-toe board:

  X  |  O |  X

  O  |  X |  O

  X  |  O |  _

Prompt the users, A and B, to enter the position they choose by showing the following board:

  1  |  2 |  3

  4  |  5 |  6

  7  |  8 |  9

Features:

1. Prompt the first user for the symbol to select, either X or O.

2. After each selection, display the board witht he X's and O's in place.

3. Display a message with the outcome of the game.
.
21
10/7

Chapter 3

.
22
10/10

Chapter 3 Test Review
.
23
10/11
Chapter 3 Test
.




Day
Date
Class Work
Homework
1
9/8
 Introductions


The Birthday Problem
2
9/9
 The Smart Piggy Bank

 No homework
3
9/12

Pseudocode and instructions in    
 computer programming
Signing in and testing the IDE


Chapter 1
 Read up 1.7 included
4
9/13

Chapter 2
Learning the IDE
Creating the Navigation1 Windows  
 Forms Application
You try: Navigation2


Draw a flowchart for a program that calculates the sum of all integers from 1 to n.
5
9/14
 Chapter 2
In Class: Learning the IDE
 More on Naviation the IDE: Create a
simple Program that Displays Text and  
 an Image: ASimpleProgram

Exercises 2.8 through 2.10 on page 70


Chapter 2
Read the Wrap-Up. Visit the websites  on 2.8 Web Resources
Do the Self-Review Exercises 2.1 and 2.2
6
9/15

In Class: Exercise 2.11,and 2.12
on pages 70 through 74
.

Exercise 2.3 through 2.7
7
9/16

Chapter Tests 1 and 2 Review
.

Prepare for the test
8
9/19

Chapter 1 and 2 Test
Complete all assignments put then in a folder with your name and drop the folder in
\\tiger1.internal\boxes\elia

.

Draw a flowchart for a program that calculates the sum of all perfect squares from 1 to n.




 
 
 





AWorldWithoutComputers0.gif


Mrs. Elia’s Company Policy*
Visual Basic
School Year 2011-2012

Grade composition:                                                      20% Homework, pop quizzes
                                                                                        20% Assignments, projects and folders
                                                                                        60% Quizzes and Tests
Homework
The student is responsible for completion and correction of homework assigned.
Homework will be checked every day. Neatness and completeness are a must. All material should be kept in a folder. Programs must be saved on your storage device.

Visual Basic Programming folder (Company rules must be included)
Your folder should contain homework, class notes, class activities, projects, pop quizzes, quizzes and tests as well as your programs. I will collect it at random without notice every marking period for grading.
Note: After the final, you can leave all the material home and start with a clean folder on the second semester.
TardinessClass starts immediately!

Absence
Student is responsible for making up work missed. Check Mrs. Elia’s classes in the PHS website for lessons and assignments.. Hours after school can also be scheduled by appointment.

Absent for a test or quiz
If you are absent the day of an announced quiz or test, you are expected to take the quiz/test on the day you return. In any other circumstance the make up test and quiz must be taken within the first two days after returning to school. If the make up is not taken, it is a zero.

  Cheating policy “Absolute zero”. Plus parents will be contacted. Programs should be your own creation.
  Getting solutions to assignments  from the publisher’s site is considered cheating.

Textbook: As soon as you get your book, write your name on the back of front cover. It must be covered at all times and well cared for. The cost of your book is $78. Book must be returned in good conditions (or pay a fine) 10 days before end of school. Otherwise report cards will be withheld.

What to bring to the classroom Pencil or pen, Notebook or binder
What not to bring to the classroom Food, sunglasses, ipod, cell phone (keep it in your book bag)
Any of these items I find, I will turn them over to main office.

How to contact Mrs. Elia
My office is in room 234 but you can find me in room 242 most of the day. I am available during 2nd, 4th periods, break and after school.
My telephone number is (609) 806-4280 extension 3631.
If you cannot get me at any of these locations, look for me in the photocopy room.
My email address is graciela_elia@monet.prs.k12.nj.us. I encourage you to communicate with me as much as possible.
*All terms and conditions are subject to change with written notification by Mrs. Elia