Visual Basic 2009 Summer Session 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 |
|
Course Notes |
|
June 7th |
|||||
|
June 14th |
|||||
|
June 21st |
|||||
|
June 28th |
|||||
|
July 5th |
|||||
|
July 12th |
![]() |
![]() |
![]() |
![]() |
| 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 Visual Basic - the 2 components and a sample program
¢ Movie: Creation of the Computer
¢ Examples: declaring variables, manipulations, output
¢ Distribute class picture - student notations
¢ Review exercise for the textbook
¢ Saving your work - be careful (review)
¢ Visual Basic Programming (review)
Ø The Boolean data type
Ø If Then statements
¢ Examples: declaring variables, manipulations, output - decision making
¢ Submitting assignments
¢ Lab assignment 1: note: many are listed but do only as assigned - may change
¢ Lab 1
¢ Upon entering classroom or lab (for Mobile Robotics) each day
Ø Keyboards and mice are sanitized - disinfected each afternoon
Ø TA will place hand sanitizer - disinfectant in your palm upon entering the lab each class
Ø Must be used before touching a keyboard
¢ Lab 2
¢ Lab 2
¢ Lab 3
¢ Some additional comments on loops and the lab - starting point for loops depends on the problem
¢ Windows Applications: Example
¢ Student(s) present lab 3: Restaurant problem
¢ Lab 3 - note that lab 4 is optional
¢ Iliana presents Stars lab solution
Ø Picture Box: PictureBox1.Image = Image.FromFile("z:\monkey.jpg")
Ø Properties: Set SizeMode to Auto
¢ Visibility (a Boolean)
Ø Setting a value using properties window

Ø Setting in code: TextBox1.VIsible = False
¢ Lab 5 - Lucky 7
¢ Upon entering classroom or lab (for Mobile Robotics) each day
Ø Keyboards and mice are sanitized - disinfected each afternoon
Ø TA will place hand sanitizer - disinfectant in your palm upon entering the lab each class
Ø Must be used before touching a keyboard
Picture Boxes
¢ Place Picture Box on Form
Ø Open Tool Box
Ø Select Picture Box and place it on the form
¢ Insert a picture (JPG) into the Picture Box
Ø Right click on Picture Box and select Choose Image - or you can highlight the Picture Box and select Image from the Properties Window
Ø Click Import, select the JPG
¢ Make the Picture Box invisible
Ø Highlight the Picture Box
Ø In Properties window, set the Visible property to False
¢ Adjust size of JPG in Picture Box
Ø Highlight the Picture Box
Ø Select SizeMode in the Properties window
Ø Set to Stretch Image
¢ Make the Picture Box visible using code
Ø PictureBox1.Visible = True
Adding Another Form
¢ Project
¢ Add Windows Form
¢ Windows Form
Going to another form using code
¢ Form2.Show
¢ Movie: The Internet - Behind the Web
¢ Arrays
¢ Finish Lucky Seven
¢ Movie Summary: The Internet - Behind the Web
¢ Arrays
¢ Status of Assignments Submitted
¢ Internet review exercise - winner receives a Visual Basic textbook
¢ Arrays
Ø One and Two-Dimensional
Ø Why I do not recommend using higher than two-dimensional - array of objects instead (covered later)
¢ Sequential Search
¢ Passing arrays to a method
¢ Lab 5 - Restaurant - Optional
¢ Lab 6 - One Dimensional Arrays
¢ Status of Assignments Submitted
¢ Arrays: Sorting
¢ Passing arrays to a method
¢ Lab 5 - Restaurant - Optional
¢ Lab 6 - One Dimensional Arrays
¢ Lab 7 - One Dimensional Arrays - Operations
¢ age - for possible use in the lab(s)
¢ Status of Assignments Submitted
¢ Lab 7 - One Dimensional Arrays - Operations
¢ Status of Assignments Submitted
¢ Graphics
¢ Lab 8
¢ Status of Assignments Submitted
¢ Graphics
¢ Lab 8
¢ Status of Assignments Submitted
¢ Do the labs - I will help if asked - you will get almost nothing out of computer science (and most other courses) if you do not work representative problems.
¢ Graphics
¢ Summer Session Performances, etc.
¢ Status of Assignments Submitted
¢ A note on the languages I teach
Ø Some commentary on "10 cent comic books"
Ø I am teaching the language using the latest version of Visual Basic (published by Microsoft) according to generally accepted programming
practices and style (worldwide)
Ø Please do not use antiquated syntax in my classes - the code will not work on most modern compilers (like the one I am using)
¢ Lab 9
¢ Status of Assignments Submitted
¢ Bill Gates Frustrated EMail: http://blog.seattlepi.nwsource.com/microsoft/archives/141821.asp
¢ Graphics
¢ Lab 10
¢ Status of Assignments Submitted
¢ Graphics
¢ Lab 10
¢ Status of Assignments Submitted
¢ Status of Assignments Submitted
¢ Work on Rocket Lab
¢ Presentation 1
¢ Status of Assignments Submitted
¢ Approximating Pi - discussion
¢ Presentation 2
¢ Vote for winner
¢ Lab 11
¢ Status of Assignments Submitted
¢ Lab 11
¢ Status of Assignments Submitted
¢ Status of Assignments Submitted
¢ Strings
¢ Lab 11
¢ Status of Assignments Submitted
¢ Strings
¢ Status of Assignments Submitted
¢ Pi lab contest: Megan, Illiana, Nicky
¢ Status of Assignments Submitted
¢ Megan won the Pi lab contest - book award
Last 2 labs - Labs 12 and 13
¢ Status of Assignments Submitted
¢ Results of review exercise: lowest to highest score
Brenna (lowest)
Aaron
Nick
Chris
Benjamin
Rebecca
Armin
Jon
Khiem
Brandon
Ryan
Megan
Iliana
Gabe
Nicky (highest)
¢ Course review:
Ø Movies
t Creation of the Computer
t The Internet - Behind the Web
Ø Origins of Visual Basic
Ø Data Types
Ø Math operations
Ø Logic operators
Ø Compilers
Ø Console and Windows Programs
Ø Pseudocode
Ø Control Statements
Ø Methods and parameters
Ø Random numbers
Ø Passing by reference and passing by value
Ø Random Numbers
Ø Arrays: one and two-dimensional
Ø Sorting: Bubble, Selection, and Insertion
Ø Graphics
Ø Strings
¢ Some thoughts in conclusion
ð The game of life and the scrap heap of history
ð The fallacy of osmosis as a learning approach
ð A useful experience or a lost opportunity
¢ Summer Session PowerPoint pictures