Question: Problem Description An organization provides electronic services to customers through three reception desks ( ` desk 1 ` , ` desk 2 ` , and
Problem Description An organization provides electronic services to customers through three reception desks deskdesk and desk Each customer has a name, age, and service category. The simulation will manage these customers by adding them to reception queues based on priority and availability, and handle service requests that remove them from the queues. The data in the attached file represents a series of customer arrivals and commands to serve customers at specific desks: Part : Priority Queue Simulation for Customer Visits Marks: Read the customer data from a file and parse each entry. Use three queues deskdeskdesk to manage customer arrivals. Each new customer should be added to the queue with the fewest customers, following priority rules: o Highest priority is given to customers above age o Then, prioritize by service category: catcatcat For each "serveDesk" command egserveDesk simulate serving the customer by removing the highestpriority customer from the specified queue deskdesk or desk Part : Memory Allocation Visualization Marks: After every "serveDesk" command, draw the memory allocation for the three queues. Your drawing should represent each queue and indicate which elements remain in each queue after the serve operation. The drawing can be done using simple boxes in a text editor, or graphic tool. Ensure it clearly shows the queue structure and customer positions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
