Robotics C++ Java AP Java Electronics  Summer   Physics II AP Physics Astronomy Other

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

Monday

Tuesday

Wednesday

Thursday

Friday

June 13th

Monday

Tuesday

Wednesday

Thursday

Friday

June 20th

Monday

Tuesday

Wednesday

Thursday

Friday

June 27th

Monday

Tuesday

Wednesday

Thursday

Friday

July 4th

Monday

Tuesday

Wednesday

Thursday

Friday

July 11th

Monday

Tuesday

Wednesday

Thursday

Friday


Vacuum Tube: 1946-1958 Transistor; 1959-1964 Integrated Circuit: 1965-1970      Microprocessor: 1971-present

Monday

¢ Food and Snack Menu

 

¢ 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 instructor

    Ø 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

¢ Software Locations

¢ 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

     Ø Computer Science

     Ø VB Express Edition

 

 

Tuesday

 

¢ ID Pictures with name you prefer

¢ Opening Visual Basic - sample probram

¢ Visual Basic Manual

¢ Visual Basic Programming: Chapers 1, 2, and 3

¢ Examples: declaring variables, manipulations, output

 

Wednesday

 

¢ Movie: Computers

 

Thursday

 

¢ Saving - be careful

¢ Visual Basic Manual

¢ Visual Basic Programming (review)

     Ø The Boolean data type

     Ø If Then statements

¢ Examples: declaring variables, manipulations, output - decision making

¢ Submitting assignments

¢ Control Statements

¢ Lab 1

 

¢ Lab assignment 1: note: many are listed but do only as assigned - may change

 

Friday

 

¢ Example to illustrate formatting - input and output (ReadLine and WriteLine)

¢ Lab 1

 

Monday

 

¢ Control Statements, Part 2

¢ Lab 1

 

Tuesday

 

¢ 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 

¢ Methods and Random Numbers

¢ Lab 2 (stars, exercise 1)

 

Wednesday

 

¢ Methods, Math Methods, and Random Numbers

¢ Lab 3.

 

Thursday

 

¢ First quiz

¢ Passing Variables

¢ Work on labs

     Ø Lab 2 (stars, exercise 1): Nested for loops

     Ø Lab 3.: Using methods

 

 

Friday

 

¢ 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)

 

Monday

 

¢ Status of Assignments Submitted

¢ Random Numbers

¢ Start Lucky Seven - one roll

 

Tuesday

 

¢ Movie: The Internet - Behind the Web

 

 

Wednesday

 

¢ Random Numbers

¢ Lab 4: Lucky 7

 

Thursday

 

¢ Checking for number of 7s: the logic

¢ PictureBoxes

¢ Lab 4: Lucky 7

 

Friday

 

¢ Status of Assignments Submitted

¢ Lab 4: Lucky 7

 

Monday

 

¢ 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 

 

Tuesday

 

¢ Status of Assignments Submitted

¢ Graphics and the Static Keyword

¢ Lab 5: Exercise 1a only

 

Wednesday

 

¢ Graphics on a separate form

¢ Lab 6, duplicate Graphics on a separate form - save work - will modify later

 

Thursday

 

¢ Quiz

¢ Graphics on a separate form

¢ Lab 6, duplicate the above program - save work - will modify later

 

Friday

 

¢ Translating the Origin

 

        'Move the origin to roughly bottom left corner - leave room for numbering (assumes size is 400 by 400)

        G.TranslateTransform(20, 380)

        'Make y positive pointing up (change the default direction)

        G.ScaleTransform(1.0, -1.0)

Public Class Form1

    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

 

 

Monday

 

NO CLASS

 

Tuesday

 

¢ Status of Assignments Submitted

¢ Starburst: Random numbers, drawing random lines, color, translated origin

¢ Lab 8: Duplicate Starburst

 

Wednesday

 

¢ Assignments

¢ Status of Assignments Submitted

¢ Ellipses

¢ Lab 9, Ellipses, Exercises, Exercise 1

 

Thursday

 

¢ Assignments

¢ Status of Assignments Submitted

¢ Ellipses review

¢ Arcs

¢ Lab 10, Ellipses, Exercises, Exercise 2

¢ Lab 11, Arcs, Exercises, Exercise 1

 

Friday

 

¢ Assignments

¢ Status of Assignments Submitted

¢ Lab 12, Explosion: Duplicate this

 

Monday

 

¢ Assignments (note: the remainder of the labs - 16 total - have been posted)

¢ Status of Assignments Submitted

¢ Arrays

¢ Lab 13: Arrays, Exercise 1

 

Tuesday

 

¢ Assignments

¢ Status of Assignments Submitted

¢ Sorting and Searching: Bubble Sort

¢ Lab 13: Arrays, Exercise 1

¢ 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

 

 

Wednesday

 

¢ Assignments

¢ Status of Assignments Submitted: CURRENT STATUS WILL BE POSTED AFTER CLASS TODAY

¢ Open House today: 6-8 pm

¢ Rocket program

¢ 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

 

Thursday

 

¢ Assignments

¢ Status of Assignments Submitted

¢ Get course letters at end of period

¢ Plotting, etc to a new form

¢ Rocket program

¢ 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 

 

Friday

  

¢ Assignments

¢ Status of Assignments Submitted

¢ Course Review

¢ Quiz for Klondike

 

 

 

LAST CLASS OF THE SUMMER!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2009 Notes