Thursday, April 21, 2011

Welcome to the CISP 242: Visual Basic Programming II Course Weblog!

Welcome to the CISP 242: Visual Basic Programming II Course Weblog! This site will serve as a repository for course information, including course slides, assignments and resources.

Please send me an email (nicole.ryan@davenport.edu) if you have any suggestions regarding the weblog.

Last Class!! / Final Projects, etc.

Sadly, the Final Exam Project (Exercise 15.8 on page 792) is due today, and this will be the last day of our class. I have truly enjoyed having all of you in class over the course of this semester and last. I will definitely miss this class and the fun we have had!  : )

I wish you all the best if you are not continuing on to segment III... Have a wonderful Summer. Hopefully I will see you all in and around Davenport.

Best Regards,
-Nicole

..Don't forget to upload your Final Exam Project to Blackboard today. Grades will be posted in Blackboard by next Tuesday. Feel free to email me with questions or if you would like to see the breakdown of points for assignments.

Thursday, April 14, 2011

Chapter 15: GUI with Windows Presentation Foundation Final Project

This week we will explore creating GUIs using Windows Presentation Foundation and we will discuss the Final Exam Project due in class next week.

The Final Exam Project is exercise 15.8 on page 792 of your text.

This program is modeled after the XAML Painter application shown in Figures 15.13 and 15.16 on pages 746 - 753. For this program you should allow the user to select the brush color using the color chooser instead of radio buttons. You will also need to use a style to maintain a standard appearance for each of the sliders. How to apply styles and the color chooser are covered in Chapter 15 in Figure 15.23 and 15.24 on pages 763 - 765.

Before beginning the project you should review pages 742 - 745 on creating WPF applications and the principles of flow-based layouts. It is important that you choose the WPF application type when creating your application in Visual Studio.

Remember that you can grab the example code seen in Figures 15.13, 15.16, 15.23 and 15.24 on my blog. This should serve as a good starting point for your project.

The Final Exam Project is due in class next week. Please upload your project and all of the corresponding files to Blackboard by the end of class next Thursday, April 21, 2011.

Thursday, April 7, 2011

Rebecca Black Is Kind of Awesome — No April Fooling

I know you guys will appreciate this (:


Chapter 14: Graphical User Interfaces with Windows Forms

To wrap up Chapter 14 we will work on putting together one of the exercises on page 723. Please choose one of the following exercises below and complete it for next week.
  • Exercise 14.12 - File Browser
  • Exercise 14.13 - Multiple form text editor
  • Exercise 14.15 - Bill Calculator
  • Exercise 14.16 - Tab Pages
Please upload your program in Blackboard by next Thursday, April 14, 2011.

Thursday, March 24, 2011

Exception Handling (Chapter 13)

This week we will cover Exception Handling (Chapter 13). Please read through and review the end of Chapter 12 on Interfaces beginning on page 553.

We will test what we have learned by creating a program that demonstrates a method with its own Try / Catch block as detailed in exercise 13.8 on page 610.

This exercise is due in class next Thursday, March 31, 2011.

Thursday, March 10, 2011

Don't Forget::

How do I keep the Console from closing after I build my program?
Add Console.ReadLine() at the end of Main.



Chapter 12: OOP Polymorphism

This week we will discuss Polymorphism as it is covered in Chapter 12 of the text.

The assignment in conjunction with this chapter is  Exercise 12.9, Payroll System Modification, on page 577. This assignment is due in two weeks on Thursday, March 24, 2011.  Please upload all assignment files in Blackboard by March 24, 2011. 

Thursday, March 3, 2011

OOP Inheritance, Oh Yeah

To get back into the swing of things after our <insert sarcasm here> warm and refreshing "Spring Break" </insert sarcasm here>, we will look at Chapter Eleven's coverage of Inheritance. No, this is not the kind of, grandma left me all her money and knitting needles, Inheritance, rather, it would be the shove your head back into the world of programming, Inheritance

So without further ado, the assignment to be completed in conjunction with today's discussions will be Exercises 11.4, and 11.5 on page 527, in which you will write to me about all of the reasons to use Inheritance (11.4), and also create a UML class diagram (11.5).

Both exercises are due in class next Thursday, March 10, 2011. Please submit both of them via Blackboard as a zipped file.

Thursday, February 3, 2011

Weather and Microwaves

Because the weather conditions we are currently experiencing are less than optimal, we will adjourn early this evening. I want to be sure that everyone makes it home safely.

Road conditions in some areas are treacherous. I was having trouble getting here via my normal route. Please be very careful going home.

This week we will continue to work on our Microwave assignment. It is due next Thursday.

Oh, and one last thing - since I will not be lecturing tonight (in an effort to get you home sooner), I did not want you to miss out on the inspiring quotes at the beginning of each of our text's PowerPoint presentations, so here are a few that I found to hold you over:

Weather forecast for tonight:  dark.  ~George Carlin


Dear beautiful Spring weather, I miss you.  Was it something I said?  ~"Skipper" Kim Corbin

The snow doesn't give a soft white damn whom it touches.  ~e.e. cummings



Weather is a great metaphor for life - sometimes it's good, sometimes it's bad, and there's nothing much you can do about it but carry an umbrella.  ~Terri Guillemets

Regards,
- Nicole

Thursday, January 27, 2011

Chapter 10: Nuke it! (Microwave Oven Application)

This week we will finish discussing classes as they are outlined in Chapter 10 of our text.


To help you get started assembling the files for this project I will outline the files needed and I have attached the partially completed MicrowaveOven.vb file with code for the microwave interface. 

When I chose this assignment, I had envisioned separating the main functionality of the Microwave Oven application from the interface. I was expecting to see a Time class,  a MicrowaveOven class, and another file that would handle the button clicks and display, etc, for the microwave interface. The book's example has only two files, a Time class file (Time.vb) and a MicrowaveOven interface file (MicrowaveOven.vb). 

Here is the partially complete MicrowaveOven.vb file. You will need to complete the code for buttons 3-9, and 0, and the clear button. If you feel ambitious and would like to make an attempt at separating some of the functionality into a re-useable "MicrowaveOven" class (i.e. another file, containing a Public MicrowaveOven class), you are welcome to do so.

Below is a screenshot of the microwave interface, your microwave can be designed differently, if you prefer, this is just to give you an idea and help you get started.

 

The requirements for the functionality of the microwave are detailed in Exercise 10.11 (The Microwave Oven Application) on page 482. This assignment is due in two weeks on Thursday, February 10, 2011. Please zip and upload all associated files in Blackboard before class Thursday, February 10, 2011.


Thursday, January 20, 2011

Optional Assignment: 10.2 Time Class Case Study

If you would like some extra practice, you can work through the Time Class Case Study example on pages 419 - 424.

This example demonstrates the Time class and the graphical user interface test program that we discussed today.

After a successful build, zip and submit your files on Blackboard by Thursday, January 27, 2011.

Thursday, January 13, 2011

Using LINQ to Query an Array

Set up and build the "Using LINQ to Query an Array of Employee Objects" example on pages 403-5. 

Use the Chapter 9 files from the Visual Basic® 2008 How to Program Example Programs website. Use the sample program for Figures 9.3 and 9.4. You will have both the employee.vb and the LINQWithArrayOfObjects.vb files. 

The employee.vb file is the Employee class, and the LINQWithArrayOfObjects.vb is the main program that is being used to test the class and using LINQ.

  1. Once you have successfully built the program, add an additional LINQ Query (like the one used to filter the salary results on line 20). 
  2. Use the two queries to display salaries above $5000 and below $5000. 
  3. This means you will need to change the existing salary query as well.  
  4. Add 5 more employees with varying salaries.
  5. Build and debug the program.
Once you have successfully built the program, zip your files and submit them in Blackboard. 

This assignment is due Thursday, January 20, 2011.