Product Information
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
- newspaper record (with the same Product ID) already exists
- invalid input
- variables of types int or float exceeding maximum (or minimum) range
Process Description:
Search to see if a newspaper record with this same ID already exists.
if (this newspaper record does not exist already)
else
end_if
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
- newspaper record (with the same Product ID) does not exist
- invalid input
- variables of types int or float exceeding maximum (or minimum) range
Process Description:
Search for specified record in the Newspaper Products datastore
if (record not found)
else
end_if
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
incorrect input format
Process Description:
if (Product ID is valid AND the record referred to by this ID is found) then
else
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
- invalid Input
- variables of types int or float exceeding maximum (or minimum) range
- input(s) of incorrect format
Process Description:
Based on the Product ID (and Product Name) entered by the
user, a search is done, in the Newspaper Products datastore, for the
specified newspaper product record.
if (record is found)
else
end_if
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
-none
Process Description:
Newspaper Product information is printed to a file or monitor
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
Magazine record (with the same Product ID) already exists
Process Description:
Search to see if this magazine record already exists.
if (this magazine record does not exist already)
else
end_if
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
-The magazine record could not be found
-Invalid Input
-variables of types int or float exceeding maximum (or minimum) range
Process Description:
Search for specified record in the magazine database
if (record not found)
else
end_if
Process Name: Delete Magazine Product (1.3.3.4)
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
-incorrect input format
Process Description:
if (Product ID is valid AND the record referred to by this ID is found) then
else
Process Name:Find Magazine Product Info (1.3.3.5)
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
- invalid Input
- incorrect input format
Process Description:
Based on the Product ID (and Product Name) entered by the user, a search is done, in the Magazine Product datastore, for the specified magazine product record
if (Record found)
else
end_if
Process Name:Print Magazine Product (1.3.3.6)
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
- invalid Pointer
Process Description:
- Record(s) with regards to magazine product information will be printed out.