Roxanne Lee Mohamed Adan
Idle State:
1. Start
2. Update displays welcome message to customers
3. While column/row buttons are enabled
4. Wait till customer hits any key either from the column/row or the transaction machine
5. Enter active state
6. End
Active State:
1. Start
2. Declare Product struct members and receipt
3. Set minQuantity = 1
4. When customer touches a button , activate Hardware to an “Active State”.
5. Prompt customer to select a Product
6. Scan slotID for product by column/row buttons
7. If the quantity is = 0 ( product out of stock) go to step 5
8. When the product is that is in stock is selected add it to the list on the receipt
9. Subtract 1 from quantity for the sku on the slotID
10. Does the customer want more products?
a. Yes go to step 5
b. No go to next step
11. Show the customer the total list for the products they want to purchase.
12. Would the customer like to continue with the purchase of the products?
a. Yes got to step 13
b. No go to step 1 ( return hardware to active state)