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 24, 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.
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
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.
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.
Subscribe to:
Posts (Atom)