Programming Logic - Beginning
Last revised: October 23, 2011
| Instructor's Notes | |||
|
Programming Concepts |
|
Unit 1 - Programming Concepts |
|
Introduction to Program Development
Visual Studio File System |
|
Unit 2 - The Visual Studio Integrated Development Environment, Forms, Labels and Pictures Brief explanation of how Visual Studio stores programming projects. |
|
Designing Programs and Applications |
|
Unit 3 - Program Design Tools |
|
Sequential Processing |
|
Unit 4 - Input, Output and Calculations |
|
Decision Processing |
|
Unit 5 - IF and Case statements, Radio Buttons, Check Boxes |
|
Looping |
|
Unit 6 - Repetition Processing |
|
Additional Notes: Message Boxes Debugging |
|
Notes to supplement the official class notes --- Details on how to use the MessageBox class --- Details on how to use the Visual Studio 2008 debugger |
|
Video Notes |
|
Video notes provided by the book publisher and authors. Similar to my Camtasia recordings
(a little more professional) but more closely tied to the text. |
|
Visual Basic: How To |
|
How to accomplish tasks that I always seem to forget how to do and can never find again in my resources. |
| Recorded Lectures | |||
|
Unit 2 - Intro to Program Development | ||
Part 1
|
Programming Concepts, Importing Settings, Creating a New Project, Intro to Properties, Running a Program. | ||
Part 2
|
Forms and form properties | ||
Part 3
|
How to add new controls to your form and move, resize, delete, and align them | ||
Part 4
|
Labels and Label Properties; Coding a Visible Toggle | ||
Part 5
|
Picture Boxes, Buttons, more coding | ||
Part 6
|
Handling errors; Application documentation; Procedure documentation; Inline comments; Setting the project icon | ||
|
Unit 3 - Program Design | ||
Part 1
|
Design concepts; Meters To Yards IOP | ||
Part 2
|
Years To Days IPO; Bowling IPO; Meters to Yards prototype; Screen snapshots | ||
Part 3
|
Bowling screen prototype (DateTimePicker); Bowling TOE | ||
Part 4
|
Years to Days TOE chart; Meters to Yards TOE chart | ||
Part 5
|
Using Visio; Years to Days Pseudocode and Flowcharts | ||
Part 6
|
Meters to Yards Pseudocode and Flowchart | ||
Part 7
|
Design review; Bowling pseudocode and flowchart; Creating a test plan (Years To Days) | ||
Part 8
|
Bowling Test Plan | ||
|
Unit 4 - Sequential Processing | ||
Part 1
|
Text Boxes; Date Pickers; Setting maxDate to Today; btnClear Click | ||
Part 2
|
Variables (concepts); Variable types; Declaring variables (based on pseudocode) | ||
Part 3
|
Literals: numeric, string, date, boolean; Named constants: declaring, when to use; Variable scope | ||
Part 4
|
Strict data typing; Transferring inputs to variables (converting text to numbers); VB operators; Order of precedence; Integer division and modulus; Date calculations | ||
Part 5
|
Date calculations; String concatenation; Combined operators; Line continuation | ||
Part 6
|
Formatting output (ToString); Syntax-Run time-Logic errors; Using the test plan (Debug mode) | ||
Part 7
|
Tab Order; Focus Method; Locking objects; Access keys; Accept & Cancel buttons; Anchoring objects | ||
Part 8
|
Adding a Welcome Screen; Adding an About Screen; Using timers | ||
Part 9
|
Try-Catch (handling exceptions); Project documentation (adding a module); MetersToYards completion | ||
|
Unit 5: Decision Processing | ||
Part 1
|
Decision processing concepts; Decision flowcharts and pseudocode; Simple IF statements; IF-ELSE statements; IF-ELSEIF-ELSE statements; nested IFs; buying large-screen TV example 1 | ||
Part 2
|
Advanced TV Buying example; Relational operators; IF statements in VB; Case statement overview | ||
Part 3
|
IF statement review; String comparisons; ASCII table; Case statements | ||
Part 4
|
Simple Subs TOE and pseudocode | ||
Part 5
|
Simple Subs flowchart; Group boxes and panels; Adding radio buttons to a group box; Setting default radio buttons; Clearing radio buttons; Merging CheckChanged events | ||
Part 6
|
Sensing which radio button is/was selected (4 techniques); Coding "additional items" check boxes | ||
Part 7
|
Finished Simple Subs; Using a check box to toggle the visibility of another object; Clearing check boxes; | ||
Part 8
|
Compound conditions; Short-circuiting; Truth tables; AndAlso vs And; OrElse vs Or; Sample mini-programs | ||
Part 9
|
Adding tool tips to form objects; Setting tool tips at runtime; Generating random numbers; Doing case-insensitive text comparisons | ||
|
Unit 6: Repetition Processing | ||
Part 1
|
Looping concepts; Flowcharting For loops; Nickels example (version 1) | ||
Part 2
|
Nickels program (version 2); Quiz Percents program | ||
Part 3
|
Pre-Test loops; Progressive Sale example; Classic, procedural input validation loop (pre-test) | ||
Part 4
|
Post-test loops; Classic, procedural input validation loop (post-test); Number systems column headers example | ||
Part 5
|
Collections; Combo Box properties; AutoComplete; Forcing the user to select an item in the list in a Drop Down Combo Box with AutoComplete on (Validating event, Do Until version); Canceling change of focus | ||
Part 6
|
Ensuring a user selects an item from the list (versions 2-6); For Each loops; Items.Contains; List Boxes; Filling List Boxes (or Combo Boxes) at run-time; Clearing Combo Boxes and List Boxes; Complete City Match program. | ||
Part 7
|
Demo of multi-select List Box; Using For Each to clear all the List Boxes on a form (including those in a Group Box or Panel) | ||
Part 8
|
Loop Statistics example; Generating a bunch of random numbers; Using For Each loops to generate statistics based on a list of numbers (Count, Sum, Average, Minimum, Maximum, Range); Clearing the contents of a List Box/Combo Box | ||
|
Zipping Files & Folders | ||
Part 1
|
How to use jZip and/or 7-Zip to zip multiple folders and files so they can be attached to Email. | ||
| Assignments | |||
|
Tickets |
|
Periodic mini-assignments required to get into the next class period. |
|
Unit 2: Worksheet |
|
Homework assignment from the book. |
|
Unit 2: Welcome Screen Program |
|
Program a Welcome to be used for all future projects |
|
Unit 2:
State Information
|
|
Program to display state name and capitols |
|
Unit 3: Worksheet |
|
Multiple choice, short answer worksheet |
|
Unit 3: Designing Programs and Applications Required Assignments: Gas Mileage Program Design Math Program Design Additional Assignment (pick ONE) |
|
You must complete both of these assignments
You must complete ONE of these assignments |
|
Unit 4: Calculations Worksheet |
|
Ensure you understand Visual Basic calculations including: integer division, modulus and order of precedence |
![]() |
Calculation Practice Exercises (Key) |
![]() |
Additional exercises to practice for the sequential processing quiz |
|
Unit 4: Sequential Processing Worksheet |
|
Homework assignment from the book |
|
Unit 4: Sequential Processing Required Assignments: Gas Mileage Program Math Program
Additional Assignment (pick ONE) |
|
You must complete both of these assignments
You must complete ONE of these assignments |
|
Unit 5: Worksheet |
|
Homework assignment from the book |
|
Unit 5: Warm-Up Programming Assignment Pick One Belt's Ice Cream Rent-A-Reck Skeleton Programs |
|
You only need to complete ONE of these programming assignments. Starting program skeletons for the Belts and Rent-A-Reck programs |
|
Unit 5: Primary Programming Assignment Enhanced Math Program |
|
Enhanced Math Quiz program |
|
Unit 6: Repetition Processing Homework |
|
Homework assignment from book |
|
Unit 6: Looping Program Assignments |
|
Program assignments that demonstrate looping skills. |
|
Unit 6:
ListBox and ComboBox Program
Assignment Tracker TOE |
|
Program to track your Assignments Due (ListBox and ComboBox skills) |
| Evaluation Sheets | Evaluate your own programs before turning them in. | ||
|
Unit 2 - Welcome Screen |
|
Evaluation sheet for the Welcome Screen project. |
|
Unit 2 - States Information Program |
|
Evaluation sheet for the States Information program. |
|
Unit 3 - Gas Mileage Design |
|
Evaluation sheet for the Gas Mileage program design. |
|
Unit 3 - Math Program Design |
|
Evaluation sheet for the Math program design. |
|
Unit 3 - Currency Converter Design |
|
Evaluation sheet for Currency Converter program design. |
|
Unit 3 - Money Changer Design |
|
Evaluation sheet for the Money Changer program design. |
|
Unit 3 - Quiz Statistics Design |
|
Evaluation sheet for the Quiz Statistics program design. |
|
Unit 4 - Gas Mileage Program |
|
Evaluation sheet for the Gas Mileage program. |
|
Unit 4 - Math Program |
|
Evaluation sheet for the Math program. |
|
Unit 4 - Currency Converter Program |
|
Evaluation sheet for the Currency Converter program. |
|
Unit 4 - Money Changer Program |
|
Evaluation sheet for the Money Changer program. |
|
Unit 4 - Quiz Statistics Program |
|
Evaluation sheet for the Quiz Statistics program. |
|
Unit 5 - Enhanced Math Program |
|
Evaluation sheet for the Enhanced Math program. |
|
Unit 5 - Belts Ice Cream Program |
|
Evaluation sheet for the Belts Ice Cream program. |
|
Unit 5 - Rent-A-Reck Program |
|
Evaluation sheet for the Rent-A-Reck program. |
|
Unit 6 - Retirement Planning Program |
|
Evaluation sheet for the Retirement Planning program. |
|
Unit 6 - Big Item Savings Program |
|
Evaluation sheet for the Big Item Savings program. |
|
Unit 6 - Savings Withdrawal Program |
|
Evaluation sheet for the Savings Withdrawal program. |
|
Unit 6 - Assignment Tracker Program |
|
Evaluation sheet for the Assignment Tracker program. |
| Handouts | |||
|
Visio Instructions |
|
Quick and dirty instructions for using Visio to create flowcharts |
|
Programming Standards |
|
Course programming standards to be applied to all projects |
|
Pseudocode Standards |
|
Standards for pseudocode used in this class |
|
Robbie Traverse Maze |
|
Flowchart that allows Robbie to traverse any (simple) maze |
|
Registering for Free Software |
|
How to register to get free program development software from the Microsoft Developers Network Academic Alliance. |
|
Installing Visual Studio 2010 |
|
Tips on how to install Visual Studio 2008 using the least amount of hard drive space and in the quickest time possible. |
|
Program Design Template |
|
Excel template used as a starting point for program design |
|
Zipping and Unzipping Files and Folders |
|
How to zip and unzip your solution folders so you can submit them via Email Links to Free Zipping Programs: jZip 7-Zip |
|
ASCII Table |
|
Web page showing the ASCII value of each character |
|
Image Manipulation |
|
How to change existing images: format, size, cropping, transparency. Demo using Paint.Net |
| Programming Tips | |
| http://www.inquiry.com/techtips/thevbpro/ | A Ton of Help from the VB Pro |
| Interface Hall of Shame | What NOT to include in your interface. |
| Visual Basic Links Pages | |
| http://www.vb-web-directory.com/ | Huge, categorized list of VB sites |
| http://www.planet-source-code.com | More code than I have time to look at. Code ratings and categories. |
| http://www.vbexplorer.com | |
| http://www.vbworld.com/ | |
| http://www.vbcode.com | |
| Icons, Clip Art and Other Graphics | |
| Icon Archives | Well organized, lots of icons |
| GIF to ICO Converter | Web site that converts your gif, jpg, bmp or png to an ICO file. Thanks Cindy Mace for this handy link. |