SquidSoft Inc. - GUIDOs
Detailed Design Document - Process Specifications |
Inputs:
Outputs:
Error conditions:
Algorithm: display cashier interface if inputs from user are syntactically correct then { if UPC does not exist then print_to_user `UPC does not exist' refresh form, break else while (Cash_Given < 0) print_to_user `Negative Cash Given!' refresh field endif Send new Quantity to be decremented to the data store (Inventories) to be updated update receipt (UPC, item, quantity) Total = Total + Inventory[Sales_Price]*entered_quantity Amount_Owing = Total - Cash_Given Change = Cash_Given - Total else print_to_user `Syntax error in input(s)' endif 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 |