Visual Basic Notes
An outline of topics to be addressed each day is presented below. This list is not complete; additional items are covered for most classes. If students are absent, they should consult these pages and check with the instructor concerning material missed.
|
Summer Session Classes |
|||||
|
Visual Basic |
Astronomy |
Mobile Robotics |
C++ |
Java |
Web Development |
|
08:10 to 09:00 |
09:10 to 10:00 |
10:15 to 12:05 |
12:40 to 13:30 |
13:40 to 14:30 |
14:40 to 15:30 |
|
Visual Basic Course Notes |
|
June 6th |
|||||
|
June 13th |
|||||
|
June 20th |
|||||
|
June 27th |
|||||
|
July 4th |
|||||
|
July 11th |
![]() |
![]() |
![]() |
![]() |
| Vacuum Tube: 1946-1958 | Transistor; 1959-1964 | Integrated Circuit: 1965-1970 | Microprocessor: 1971-present |
¢ Policies
Ø Academy and Summer Session
Ø Those of the instructor - the notebook I keep - visits to see principal - then dismissal
è Not allowed during class: emails, surfing net, playing games, using cell phones
This is a computer science class - it is not a nursery
è No personal computers in classroom
è Do not leave personal items in classroom at end of class - they will be removed and you may lose them
è You cannot leave class early without written permission from parent in advance
è No visits to classroom by others unless approved in advance by both Summer Session and me
è Do not sit on desks or tables
è Do not change configuration of computers in any way
è No hats, caps or sound devices etc. on head
è All violations will be recorded in my notebook and appropriate action will be taken - without further warnings
¢ Courses I teach at the Academy
¢ Class picture
¢ Introduction to the course
Ø The TA
Ø The site: Notes, manual, assignments, schedule
¢ Teaching philosophy - LCD
Ø Some have more background than others
Ø Be considerate if at times I am covering (perhaps repeating) something you think you already know
¢ Distribute Web site card
¢ Downloading a free copy of the compiler: http://www.microsoft.com/express/download/
¢ Introduction to Computer Science and Visual Basic - the 2 components and a sample program
¢ ID Pictures with name you prefer
¢ Opening Visual Basic - sample probram
¢ Visual Basic Programming: Chapers 1, 2, and 3
¢ Examples: declaring variables, manipulations, output
¢ Saving - be careful
¢ Visual Basic Programming (review)
Ø The Boolean data type
Ø If Then statements
¢ Examples: declaring variables, manipulations, output - decision making
¢ Submitting assignments
¢ Lab 1
¢ Lab assignment 1: note: many are listed but do only as assigned - may change
¢ Example to illustrate formatting - input and output (ReadLine and WriteLine)
¢ Lab 1
¢ Lab 1
¢ Status of Assignments Submitted
Note: this is from last year - I will publish this year's status shortlyj - do the assignments or you get nothing out of the course
¢ Lab 2 (stars, exercise 1)
¢ Methods, Math Methods, and Random Numbers
¢ First quiz
¢ Work on labs
Ø Lab 2 (stars, exercise 1): Nested for loops
¢ Quiz solution: Results ranged from 1 out of 16 right to 9 out of 16 right
¢ Methods, Math Methods, and Random Numbers
¢ Introduction to Windows Applications
¢ Lab 3 will be a Windows Application
¢ Finish Lab 2 (stars, exercise 1)
¢ Status of Assignments Submitted
¢ Start Lucky Seven - one roll
¢ Movie: The Internet - Behind the Web
¢ Checking for number of 7s: the logic
¢ PictureBoxes
¢ Status of Assignments Submitted
¢ Status of Assignments Submitted
¢ Distribute results of Internet quiz
¢ Graphics and the Static Keyword
¢ Lab 4: Lucky 7: Note the procedure given for inserting graphics
Detailed description of the code provided
¢ Status of Assignments Submitted
¢ Graphics and the Static Keyword
¢ Lab 6, duplicate Graphics on a separate form - save work - will modify later
¢ Quiz
¢ Lab 6, duplicate the above program - save work - will modify later
¢ Translating the Origin
'Move the origin to roughly bottom left
corner - leave room for numbering
G.TranslateTransform(20, 380)
'Make y positive pointing up (change the
default direction)
G.ScaleTransform(1.0, -1.0)
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim g As Graphics
g = Me.CreateGraphics
g.TranslateTransform(20, 380)
g.ScaleTransform(1.0, -1.0)
Me.Height = 400
Me.Width = 400
Me.BackColor = Color.LightBlue
Me.ForeColor = Color.Black
Me.Text = "Lines"
Dim pen As New Pen(Color.Black)
g.DrawLine(pen, 50, 200, 200, 200)
End Sub
End Class
¢ Lab 7
Size the form to 600 by 600 pixels
Translate the origin to near the bottom left hand corner
Draw 2 intersecting lines at approximately the center of the page
NO CLASS
¢ Status of Assignments Submitted
¢ Starburst: Random numbers, drawing random lines, color, translated origin
¢ Lab 8: Duplicate Starburst
¢ Status of Assignments Submitted
¢ Ellipses
¢ Lab 9, Ellipses, Exercises, Exercise 1
¢ Status of Assignments Submitted
¢ Ellipses review
¢ Arcs
¢ Lab 10, Ellipses, Exercises, Exercise 2
¢ Lab 11, Arcs, Exercises, Exercise 1
¢ Status of Assignments Submitted
¢ Lab 12, Explosion: Duplicate this
¢ Assignments (note: the remainder of the labs - 16 total - have been posted)
¢ Status of Assignments Submitted
¢ Arrays
¢ Status of Assignments Submitted
¢ Sorting and Searching: Bubble Sort
¢ Lab 14: Bubble Sort, Exercise 1
¢ Explain code for rocket program
¢ Lab 15: Copy the code for the rocket program into a sub procedure and run it - turn in output only - label both axes - with numbers
¢ Status of Assignments Submitted: CURRENT STATUS WILL BE POSTED AFTER CLASS TODAY
¢ Open House today: 6-8 pm
¢ Lab 16: Remove the "hard wiring" for the Rocket program and prompt the user to input the following: launch angle, initial velocity, time of flight. You may have
to experiment to obtain reasonable values
¢ Status of Assignments Submitted
¢ Get course letters at end of period
¢ Lab 17: Rocket program
Ø Part 1: Add code to prevent the rocket from going beyond the axes (left, right, top, bottom)
Ø Part 2: Print the axes and trajectory on a separate form (from the input form) named and titled Graphics
¢ Status of Assignments Submitted
¢ Quiz for Klondike
LAST CLASS OF THE SUMMER!
