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.


No comments:

Post a Comment