Lab 7 Spring 2000

The Problem

A computer manufacturer wants a program to configure machines for its customers. There are currently three base machines and each machine can be equiped with a set of addons (hard drives, cdrom, sound cards, etc). Both the base machines and the addons change frequently. Write a program that will allow a customer to choose their base machine and addons.

Some Problem Details

For our simplified program the only difference between the three machines is the processor speed. Any addon can be added to any machine. To allow for maximum flexability, you should create two factories. One to produce base machines and the other to produce addons. You should demonstrate your program with at least three addons.

The Interface

The main window will have a menu that allows the user to pick a basic configuration, but not addons until a configuration has been selected.

The dialog used to select the basic configuration is the same one used to select addons. As you will see below, the dialog and the two bevels used to group objects are resized (made small for the basic machine and large to show the list of addons an the add button used to select addons).

Once the user has selected the basic configuration, the basic description appears in the summary list box on the main form. Users must select the choose addons menu item next. If they cancel out of the dialog that appears next, they get only the base machine.

The dialog now is large enough to reveal a listbox of addons that have been added. To add an addon, the user selects the item from the combo box and presses the Add button.

Finally the complete package is listed in the summary box of the main window with the total cost.

The Schedule

  1. The Scenarios are due on the first day of week 14.
  2. The program is due Monday, May 8 at class time.