In-Class Lab Assignments

Textbooks Used: "MS Visual Basic 2005: Reloaded, Second Edition" by D. Zak
"Java ~ A Beginner's Guide" By Herbert Schildt


VB

Programming I

Due Date
Lab Assignment
1st - 9 Weeks "Crash Course" in VB.Net
8-24-09

1. Begin project on computer programming job opportunities in different states.

2. Peanut Butter & Jelly Sandwich algorithm.

3. "Hello World" First Program - introducing a Form, labels, and a "close" button. Demonstrate VB.Net IDE.

8-31-09

Introduce the text box widget, and event-driven programming, with "add" and "subtract" buttons, to display the answer on a label.

Introduce variables as memory locations of different types, to store and manipulate data from forms.

9-07-09
Create a "calculator" application, with add, subtract, multiply, and divide buttons.

Review data types possible in variables.
9-14-09
Introduce the "IF" statement, and the idea of making decisions. Use if-statements to check if attempt to divide by zero.

Introduce Flowcharts, and the symbols to represent logic:
Start/Stop - ellipse
Process - rectangle
Input/Output - parallelogram
Decision-making/Loops - diamond
Flow of logic - arrows
9-21-09
Introduce message box to display error messages.

Introduce concept of data validation on input, using "IF" statements and message boxes.


Introduce TryParse for validation of numbers.

Modify Calculator Program to add validation and TryParse.
9-28-09
Introduce concept of Loops - repeating instructions without duplicating code.
Two types of loops - For (when exact # of repetitions are known), and While (when condition must be met to stop loop)

Introduce inputBox and concept of asking user for more input until user is "done".

Create Advanced Calculator Program that asks user to input unlimited quantity of numbers to add. Upon entering 0, stop and compute the addition.
10-5-09
Introduce menus, and link all previous Calculator programs within a menu.

Introduce splash screen, and link to main menu. Explain use of Timer & splash screen.
10-12-09
Create a Factorial program, using a For-Loop, descending by 1.

Introduce concept of pseudo-code, and use it to solve logic behind Factorial program.

Add Factorial program to main menu.
10-19-09
Review all concepts covered in 1st-9 weeks.
Give a comprehensive test of all concepts.
2nd-9 weeks
3rd-9 weeks
4th-9 weeks






VB

Programming II

1st - 9 Weeks Complete VB.Net Pre-Requisites to
Object-Oriented Concepts
8-24-09
1. Begin project on computer programming languages in history.

2. Review all concepts covered in Year 1 of Programming:
a.) Variables & data types
b.) Decision making using IFs, & Select Case
c.) Loops - Do-while vs. For-Loops
d.) Message Box, InputBox
e.) Menus & Splash Screens
f.) Data Validation, & TryParse
g.) Flowcharts & PseudoCode


3. Create all-encompassing project to include all main concepts covered in Year 1.
8-31-09

Complete first project, providing rubric of:
a.) include comments in program
b.) pseudocode or flowchart of main logic
c.) test plan and test cases documented
d.) code listing
e.) electronic copy of executable, sent via e-mail to ccharters@dadeschools.net

9-07-09 Introduce concept of functions and sub procedures:
a.) Built-in functions provided within VB.Net
i.) String Manipulation Functions

b.) Create program to encompass main String functions:
remove, mid, insert, contains, indexOf, like

c.) Use radio buttons and check boxes.
9-14-09 Complete second project, providing rubric of:
a.) include comments in program
b.) pseudocode or flowchart of main logic
c.) test plan and test cases documented
d.) code listing
e.) electronic copy of executable, sent via e-mail to ccharters@dadeschools.net
9-21-09

Introduce concept of user-defined functions and sub procedures
a.) byValue parameters
b.) byReference parameters
c.) return values
d.) reasons to create a function or sub proc.

Create a program that will need a user-defined function, AND a user-defined sub procedure.
9-28-09 Complete third project, providing rubric of:
a.) include comments in program
b.) pseudocode or flowchart of main logic
c.) test plan and test cases documented
d.) code listing
e.) electronic copy of executable, sent via e-mail to ccharters@dadeschools.net
10-5-09

Introduce concept of arrays -
One-Dimensional vs Two-Dimensional.
a.) Explain need for array
b.) How to traverse an array
c.) How to define & expand an array
d.) How to use parallel arrays
e.) How to sort an array* (Bubble Sort)
Practice Arrays Here

Create a program that will need a one-dimensional array, use a for-loop to traverse it, and do computations on it. Use parallel arrays, one to hold the numeric data & the other to hold String data. Find the highest, lowest, & average of all values in numeric array. Report corresponding data in parallel array.
10-19-09 Complete fourth project, providing rubric of:
a.) include comments in program
b.) pseudocode or flowchart of main logic
c.) test plan and test cases documented
d.) code listing
e.) electronic copy of executable, sent via e-mail to ccharters@dadeschools.net
2nd-9 weeks Use of Structures & Sequential Files;
Use of Classes & Objects;
Use of Databases & SQL.
3rd-9 weeks "Alice" with Java
4th-9 weeks LeJos (Legos with Java)

 

Java

Programming III

1st - 9 Weeks Introduce Object-Oriented Concepts using
"Alice" with Java
8-24-09
1. Begin project on famous people in computing.

2. Explain basic design architecture of Java, including JVM, byte code, class libraries (API), portability, inheritance, and encapsulation. Discuss advantages of Java over VB.Net.

3. Assign Object-Oriented diagram of Animal Kingdom.
8-31-09

1. Explain how to install Java at home. Assign the download and installation of Java SDK, and Eclipse at home.

2. Assign first Java program, "Hello World" using Eclipse. Demonstrate Eclipse IDE.

3. Co-create Java code for Animal Kingdom class hierarchy. Demonstrate code.

9-07-09 1.) Explain "Alice" history (Carnegie Mellon Univ.)

2.) Download, install, and run Alice with Java.

3.) Begin Alice Tutorials.
9-14-09 to
10-19-09
Create Alice with Java Programs
2nd-9 weeks LeJos (Legos with Java)
3rd-9 weeks Java Programs (Applications) -
Practice Loops Here
4th - 9 weeks GridWorld