You are required to write a program to simulate queueing


Assignment

You are required to write a program to simulate queueing system in the cinema with the following requirements:

1. There are two type of customers to be served which are: VIP member and non-member customers.

2. The number of tickets wanted to be bought by the customer are vary in a range of 1 to 10 tickets.

3. There must be at least 2 queue (you can have more than 2 queues) in the queueing system. Of all the queues, there must be one priority queue which only allow VIP member to queue up.

4. There are 4 service counters in the queueing system. The service rate of the sales worker are as below:

o Counter 01: Required 10 seconds to sell 1 ticket.
o Counter 02: Required 15 seconds to sell 1 ticket.
o Counter 03: Required 30 seconds to sell 1 ticket.
o Counter 04: Required 15 seconds to sell 1 ticket.

When a customer arrive at the cinema, he/she will go to the queue. If the customer is a VIP member, he/she will go to the priority queue, or else if he/she is a non-member, he/she will go to the normal queue. VIP member customer must be served before any non-member customer.

Whenever there are customers waiting in the queue, the available service counters has to call the next customer and serve them. There should not be any idle service counter except there is no more customer to serve.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: You are required to write a program to simulate queueing
Reference No:- TGS02756416

Expected delivery within 24 Hours