All the hardware devices attached to the system (card printer, card reader, and credit card scanner) can be accessed through existing external libraries.A credit card scanner attached to the system allows the system to read (i) the cardholder's name, (ii) the card's number, (ii) the card's expiration date, and (iv) the card's security code.All payments must be performed using a credit card.The Coffee Now manager can add products to the cart but also delete them in case the customer changes their mind. The CoffeeNow manager uses the CoffeeNow system to organize all the products bought by a single customer in a shopping cart.Both types of products have a price and a unique identifier. At the coffee shop, customers can buy coffees and pastries.The customer card contains a barcode that can be read using a card reader attached to the system and encodes the customer's unique identifier. The card is printed using a special card printer that is accessed through an external library. When a customer is added to the system using their name and email address, the system automatically generates the unique identifier and prints a card for the customer.The following information characterizes a customer in the system: (i) name, (ii) email address, and (iii) unique identifier.For simplicity, we assume that the manager is the only person using the system, and the manager helps one customer at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |