Problem Description
A POS (Point-Of-Sale) system is a computer system typically used to manage the sales in retail stores. It includes hardware components such as a computer, a bar code scanner, a printer and also software to manage the operation of the store. The most basic function of a POS system is to handle sales. When a customer arrives at a POS counter with goods to purchase, the cashier will start a new sale transaction. When the barcode of a good is read by the POS system, it will retrieve the name and price of this good from the backend catalog system and interact with inventory system to deduce the stock amount of this good. When the sale transaction is over, the customer can pay in cash, credit card or even check. After the payment is successful, a receipt will be printed. Note that for promotion, the store frequently issue gift coupons. The customer can use the coupons for a better price when purchasing goods. Another function of a POS system is to handle returns… A user must log in to use the POS. The users of a POS system are the employees of the store including cashiers and the administrator. The administrator can access the system management functions of the POS system including user management and security configuration that cashiers can’t do.
1. Context diagrams and interfaces. 1-a Define the context diagram of the application cashier Inventory system
administrator
POS System
Catalogue system
good sold Credit card system Bar code reader Printer
Context diagram as UML class diagram
1-b Describe the interfaces of the application (to other systems/devices) Physical Printer Credit card system USB 2.0 Internet connection Procedural Data Format of receipt URL with web Format of credit service (SOAP – http card data sent, error + xml), and SSL descriptions RPC retrieveProduct(String barcode) Inventory system RPC deduceAmount(String barcode, int amount) 1-c Describe the