vbmailasgn07.htm; updated
4/8/2003 (Copyright 2002, Bradley and Millspaugh)
VB Mail Order
Assignment 7
The VB Mail Order firm sells
products by mail order and maintains a computer-based catalog listing. You need to develop a form like the one shown
below to assist system users in managing catalog names. The form will have a menu that enables system
users to enter new catalog names, delete catalog names, display a count of the
number of catalogs, clear the catalog listing, and print the catalog listing.

Requirements.
- The menu options are shown here:
|
&File
|
&Edit
|
|
E&xit
|
&Add Catalog
&Remove Catalog
&Display Catalog Count
|
- The drop-down combo box shown in the figure above
should hold the following catalog names when the system starts up. The names should display sorted in
alphabetic order. The figure shown
here illustrates the system user selecting a catalog from the listing.

- Print Catalog List menu:
- Print the catalog listing by using the Print
Preview option – this will eliminate the need to use paper (which
would be wasted).
- A sample printed report is shown in the figure
here. Include your name and a
heading at the top of the report as is shown in this example.

- Exit menu:
Exits the program.
- Clear Catalog menu:
- Display a Message Box asking the system user to
confirm that they want to clear the catalog list. The Message Box should have the
Question icon and display both Yes and No buttons.
- If the system user selects the Yes button, then
clear the list; otherwise do nothing.
- Add Catalog menu:
- Do not allow a blank catalog name to be added
to the list.
- If the system user attempts to add a blank catalog
name to the list, display a Message Box with the Error icon and the
message "Cannot add a blank catalog name". Add an appropriate title to the message
box.
- Remove Catalog menu: Display a Message Box with the Error
icon and the message "You must select a catalog to remove" if
the system user attempts to use the Remove Catalog menu without first
selecting a catalog to be removed.
- Display Catalog Count menu:
- Display a Message Box with the message
"There are XX catalogs" where you replace the characters
"XX" with the actual count of catalogs.
- The Message Box should display the information
icon and OK button.
Assessment of Project. Your work
will be evaluated in terms of major and minor errors. The point deductions are explained
below. An assessment (test) plan is
provided that lists the different types of errors.
- Major errors – one point is deducted for
each major error committed.
- Minor errors – one point is deducted for
having between 1 and 3 minor errors; 2 points are deducted for having
between 4 and 6 minor errors; 3 points are deducted for having between 7
and 9 minor errors, and so forth.
Test Plan. This test plan lists the various errors that
can occur. Major errors are indicated by
two asterisks **.
Visual Basic Project Assessment Plan - VB Mail Order
Assignment 7
Student:_________________________________________________________Possible
Points: 10
Before startup.
- Submitted on time without all
files necessary to run the project – project is returned for
resubmission – this is a major error, when the project is regraded,
- All files not stored to a
folder named VBMailLab7. Project should be named VBMailLab7.
- Form has spelling errors.
- Form controls are misaligned or
improperly sized such that the appearance of the form is NOT pleasing and
professional. Form has too much or not enough white space.
- Code is not properly indented.
- Program code is missing sub
procedure comments.
- Program code is missing
comments giving the program name, programmer name, and date programmed.
- Controls are not named
following the naming convention specified in the textbook and notes.
Startup.
- Form fails to startup centered
on the screen. Form is not an
appropriate size.
- Missing Catalog Maintenance in
the text area at the top of the form.
- Program does not allow the
system user to select a catalog – catalog is not displayed in the
Text portion of the combo box control – catalog listing is not
sorted.
- Print Catalog menu:
- Fails to print the report **
(double-major error -2 points).
- Prints report, but the report
is missing your name as the programmer.
- Prints report, but the report
is missing the required heading.
- Fails to print the report
using Print Preview (instead it prints to paper – do NOT print to
paper).
- Add Catalog menu:
- Fails to add a new catalog.
- Adds a blank catalog listing.
- Displays a Message Box when
one should not be displayed.
- Displays a Message Box without
the Error icon.
- Displays a Message Box without
the appropriate message and title.
- Remove Catalog menu:
- Fails to remove a catalog that
was selected.
- Displays a Message Box when
one should not be displayed.
- Displays a Message Box without
the Error icon.
- Displays a Message Box without
the appropriate message and title.
- Display Catalog Count menu:
- Displays an invalid count.
- Fails to display the count as
part of the message.
- The message displays the
count, but the spacing in the message makes it difficult to read to
appear unprofessional.
- Fails to display the
Information icon as part of the Message Box.
- Clear Catalog menu:
- Fails to display a Message Box
with the Yes/No buttons to ask the system user to confirm clearing the
listing.
- Fails to display the Question
icon in the Message Box.
- Has an inappropriate message
or is missing the Title of the Message Box.
- Clears the catalog list even
if the system user selects the No button **.
- Exit menu: Fails to exit the system.
- During program execution, the
program abnormally terminated (ABEND) due to an error (** -- major error
– specify the error):
Test data.
Create your own test data to use in testing the system.