SquidSoft Inc. - GUIDOs
Detailed Design Document - Process Specifications |
Inputs:
Outputs:
Error conditions:
Algorithm: give user interface to provide store information if inputs from user are syntactically correct then store[Store ID] := Store ID store[Store Name] := Store name store[Address] := Address store[Manager name] := Manager name store[Phone number] := Phone number Send store to the data store (stores) to be added if data store reported success then print_to_user `ok' else print_to_user `Store ID number is already in use' end if else print_to_user `Syntax error in input(s)' end if return to the interface to allow user to choose other options or go back to the main menu
Inputs:
Outputs:
Error Conditions:
Algorithm: if input from User is syntactically correct then give user interface to delete an instance of "store" from data store "Stores" if store id is in data store "Stores" then if no employees (in Employee data store) is associated with store id then if no pending Orders (in Orders data store) is associated with store id then if no inventory (in Inventory data store) is associated with store id then *retrieve store record *verify deletion *return to the interface to allow user to choose other options or go back to the main menu else *prompt user that there is inventory associated with the store id *return to the interface to allow user to choose other options or go back to the main menu end if else *prompt user that there is a pending order associated with the store id *return to the interface to allow user to choose other options or go back to the main menu end if else *prompt user that there is employee associated with the store id *return to the interface to allow user to choose other options or go back to the main menu end if else *prompt user that the store id is not in the data store "Stores" *return to the interface to allow user to choose other options or go back to the main menu end if else no action end if
Inputs:
Output:
Error conditions:
Algorithm: give user interface to update an instance of "store" from the data store "Stores" (values in fields are by _default_, the values currently entered for that store) if inputs from user are syntactically correct then store[Store ID] := Store ID store[Store Name] := Store name store[Address] := Address store[Manager name] := Manager name store[Phone number] := Phone number Send store to the data store (stores) to be added if data store reported success then print_to_user `Store modified succesfully' else print_to_user `Store ID does not exist!' end if else print_to_user `Syntax error in input(s)' end if return to the interface to allow user to choose other options or go back to the main menu
Inputs:
Output:
Error conditions:
Algorithm: give user interface to print a listing of all the stores' information current_store = 0 Repeat read current_store from the data store "stores" send_to_printer store[Store ID] send_to_printer store[Store Name] send_to_printer store[Address] send_to_printer store[Manager name] send_to_printer store[Phone number] current_store = current_store+1 Until stores[current_store] == NULL return to the interface to allow user to choose other options or go back to the main menu |
|
This site created and maintained with Mortar |