Visual Basic


Syllabus       Schedule    Homework     CS Tutoring       Text Files    NEWSample Programs we did in class (must be logged into the cs domain to view)

Week
Starting

Monday

Wednesday

Friday

8/30 Chapter 1-Introduction to Visual Basic & Other Information
  • Take Role & 1st day attendance
  • What is Programming?
  • What is a compiler?
    • Visual Studio Express Edition
    • Installing it
  • File management / Windows Explorer
  • Applied Technology minor
  • Getting started with our 1st VB Program
  • Importance of truly understanding the first few chapters
    • Terms
    • Don't underestimate the importance of knowing where you saved your program
    • Using the compiler
    • AWA - Alternate work assignments
    • When to meet in the Lab (Dundee in Ross Hall)
    • Designing a Program (Software Engineering)
    • What is an algorithm?
    • Flowcharts & Pseudocode
    • More notes

     

     

 Link to download Visual Basic and some other tools.

Page 14. Writing your first Visual Basic Project

  1. Set up workspace

  2. Start new project

  3. Set up Environment

  4. Plan

  5. Place Controls on Form p. 19

  6. Set Properties p. 23

  7. Write Code p. 29

  8. Run p. 35

  9. Save & re-open p. 36

  10. Modify p. 38

Meet in the lab, start our first walk-through VB program.
9/6 Chapter 2 - User Interface Design
  • Controls and Events
  • Make sure you read this chapter carefully it covers fundamentals that are the building blocks of everything else.

I'll go over an example of a small program.

Do the Walkthroughs in chapter 2:

  • Text Box

  • Button

  • Label

  • List Box

 

I'll go over the Flag Viewer program & answer any questions

Read Chapter 3 for next time

 

9/13

Chapter 3 - Variables, Constants, and Calculations

Flag viewer assignment due.  I'll come around and check these.

What is Critical Thinking?
Blooms Taxonomy

Start the Hands-On Programming Example page 145


Continue with Chapter 3

- Very important chapter
- Talk about strings
- Bring in Questions!!

Continue with the Hands-On example

Assignment #2 - Very Very Boards Page 158

Finish Chapter 3

In-class example (compound interest)

9/20

Go over Calorie counter (image of code at bottom of this page)

Chapter 4 - Decisions and Conditions

Let's try a Loop problem:

We covered IF statements, Functions and Procedures this week. Let's do a practice program with that on Friday in the Lab
9/27 Image Consulting Example Finish Chapter 4 Demonstrate a Case study Example

Piece Work Calculator - 4.6, page 207

10/4 Chapter 5
  • Menus
  • Common Dialog Boxes
  • Sub Procedures
  • Function Procedures

Menu and Function Example - The extension of the piecework Calculator from last class.



 

Review for the exam

Friday Exam 1 - Will be on:

  • Chapters 1 thru 5
  • If Statement
  • Functions
  • Procedures
  • Boolean
  • Case Statement

Review

10/11

Chapter 6 - Multiform Projects

   
10/18 Chapter 7 - Lists, Loops, and Printing
 - Loops
 - Do While
 - Do Until
 - For - Next Loops

Class example of the American to British Translations

Continue with chapter 7

We can work on sorting
Write a simple program that sorts a file, we can use the egg file from way back, Use either bubble or selection sort.
Eggs.txt

 

10/25 Chapter 8 -  Arrays
- More organized way to store a lot of related data
- Some consider this the most complex topic of the course.
-  Not that hard, just another way to store a lot of related data.
Array examples in class. Let's compute the average of a list of numbers.  Make sure you load the numbers into an array first.  Then loop again and determine the average.  We are using an array as practice.
List of Numbers
11/1 Example implementation of an array of Records.  We'll look at 8-1, but we're also going to read the data in from a file.  So it's a little of chapter 11 also. Continue with the previous example, gathering some statistics of the data and determining the poverty levels for problem 8-1 Let's look at 8-1 using a 2-d array instead of an array of records
11/8 Continue with implementing the 2-D array Chapter 11

Sequential Files
 - Reading from a text file that is already on your computer

- Know How to append to a file,
close and reopen in append
... .=IO.File.AppendText("sample.txt") -> puts the write marker at the end of the file.

 

Making a web page with Visual Basic

Chapter 9 - Web Applications

11/15 Let's do an old exam I dug up, I want you to give it an honest try first.

Exam 2

Continue with the exam review. Look at making web applications in VB

do an example

11/22

Thanksgiving Break this week

Exam 2 November 22nd

11/29

 

Let's start the review.  I'd like to go over more functions and procedures.

Show example that uses a function.  5.3 page 249.

   
12/6  

 

 
Final Exam will be on ????
 

Assignments:

 

Assignment # Due Date Description
1 9/132.2 Page 104 - Flag Viewer Problem due
2 9/22Very Very Boards Page 158
3 10/15 Very Very Boards Page 252 - Adding on to the one you did in Chapter 4
4 10/22Very Very Boards Page 286 - Adding multiple forms
5 11/10Very Very Boards Page 360 - Load up data to an array, print out.
6 12/311.5 Page 467