Update a Book

Update a Book

Interface Definitions:

Inputs to module:

Inputs by user:

Can be any/many of the below, to be edited:

Outputs:

Confirmation message

Data Abstractions:

Title ="string"

Author ="string"

Subject ="string"

Call # ="integer"

Publisher ="string"

Publishing Date ="date"

Location ="string"

Type ="char"

Cost ="currency"

Volume Number ="integer"

Copy Number ="integer"

Information ="string"

Design:

Environment: GUI (graphical user interface)

Interface: Pop-up window. (See picture files for a view.)

Completion of this module is performed by:

  1. Pressing Cancel - in which case no update is performed.
    • Update window is closed.
  2. Pressing Update - syntactical error checking is done.
    • Confirmation Window is popped up.

Sub-Modules:

Error-Handling:

Syntactical Errors:

IF Call number entered does not match any call number currently in system.

THEN give error window:

IF Location entered does not match any province currently in system.

THEN give error window:

IF Publishing Date entered does not match the format currently in

system or date is not in valid range.

THEN give error window:

Empty-Field Errors:

IF Call Number field is left empty

THEN give error window:

Imports:

Exports:



Back to the Book Functions Index