Draw an activity diagram that models the following scenario for a point of sale system. [15]
• the sales clerk enters item codes until all the customer’s purchases are recorded • the subtotal, taxes and total amount due are calculated • the customer can choose to pay with cash or a credit card • if the customer chooses to pay by credit card, a credit check is done • if the customer’s credit card is declined or the customer has insufficient cash, the sale is voided • if the customer can pay, the payment is recorded and a receipt is issued to the customer