Background:
In a club, there are three types of customer, namely, VIP(highest priority), regular member and non-member (lowestpriority). Service of waiting customers in the queue are based ontheir priority. Customers with the same priority are served on afirst-come, first-served basis.
Overview:
In the lab, you will implement five functions for the linkedlist data structure:
- new_customer – creates a node for a newcustomer
- insert_customer – inserts a customer into thelist while preserving its order in terms of his/her priority. (VIP> Regular-member > Non-member)
- view_customers – displays all customers in thelist by traversing it from the beginning to the end
- dispatch_customer – removes a customer fromthe beginning of the
OROR