| Category | Assignment | Subject | Programming |
|---|---|---|---|
| University | Multimedia University (MMU) | Module Title | CMA6134 Computational Methods Coding |
Create a simulator for customer arrivals at any service provider. Choose a service provider such as bank, post office, telecommucation, etc. The simulation system should be able to simulate a queuing system for at least three different types of services. Different types of services will be served by different counters. Each service type should have at least two serving counters. Table below shows the example of services provided by a bank:
| Service Type | Details | Counter |
| 1 | Deposit service Transfer servicesFixed Deposit services and etc | 1,2,3 |
| 2 | New account opening ATM card replacementCredit cards application and etc | 4,5 |
| 3 | Investment Loan consultancy Safe deposit locker and etc |
6,7 |
Firstly display the above table at the beginning of the simulation. Secondly, generate and display the table of the service type, service time and inter-arrival time.
| Service Type | 1 | 2 | 3 |
| Probability | |||
| CDF | |||
| Range |
Service Type 1:
| Service Time | ……… | |||
| Probability | …… | |||
| CDF | ||||
| Range |
Service Type 2:
| Service Time | ……… | |||
| Probability | …… | |||
| CDF | ||||
| Range |
Service Type 3:
| Service Time | ……… | |||
| Probability | …… | |||
| CDF | ||||
| Range |
| Inter-arrival Time | …….. | ||
| Probability | …….. | ||
| CDF | |||
| Range |
For generation of random numbers for the types of services, service time and inter-arrival time, you can consider rand function from FreeMat, linear congruential generators or other generators. User should be able to choose the type of random number generator to be used before the simulation. Use rand function to generate the seed number for the different generators. Adjust the range of random numbers so that they are within the appropriate range. For further details please refer to Chapter 4.
On top of this,
a)user should be able to select the number of customers,
b)exhibit the message for the counter operating status, arrival, departure of the customers and so on from time to time. For example:
Arrival of first customer at minute 0 and the queue number is 1001 Arrival of second customer at minute 3 and queue number is 2001 Departure of first customer at minute 4.
Service for second customer started at minute 3.
Counter 4 started operation at minute 3.
After the simulation, display the table of the simulation. Below is the example:
| n | RN for Inter- arrival time | Inter- arrival time | Arrival time | RNs for the service type | Type of services | Queue number |
| 1 | - | - | 1 | 1001 | ||
| 2 | 2 | 2001 | ||||
| 3 | 1 | 1002 | ||||
| 4 | 1 | 1003 | ||||
| 5 | 3 | 3001 | ||||
| 6 | 2 | 2002 | ||||
| 7 | 1 | 1004 | ||||
| : |
You can separate the simulation table based on the service type as follows:
Service Type 1:
| Customer Number | Queue number | Arrival time | Counter Number | RN for service time | Service time | Time service begins | Time service ends | Waiting time | Time spends in the system |
| 1 | 1001 | 1 | |||||||
| 3 | 1002 | 2 | |||||||
| 4 | 1003 | 3 | |||||||
| 7 | 1004 | 2 | |||||||
| : |
Service Type 2:
| Customer Number | Queue number | Arrival time | Counter Number | RN for service time | Service time | Time service begins | Time service ends | Waiting time | Time spends in the system |
| 2 | 2001 | 4 | |||||||
| 6 | 2002 | 5 | |||||||
| : |
Service Type 3:
| Customer Number | Queue number | Arrival time | Counter Number | RN for service time | Service time | Time service begins | Time service ends | Waiting time | Time spends in the system |
| 5 | 3001 | 6 | |||||||
| : | |||||||||
| : |
Lastly evaluate the results of the simulation, for example average inter-arrival time, average waiting time, average time spent in system, probability that a customer has to wait in the queue, and average service time (refer to the example in the notes).
Struggling With Your CMA6134 Computational Methods Coding Assignment? Deadlines Are Near?
Hire Assignment Helper Now!Looking for expert help with your CMA6134 Computational Methods Coding assignment? Our Malaysia Assignment Helper provides you with top-quality, plagiarism-free content tailored to meet your academic needs. We also offer a Free List of Assignment Samples to guide you in crafting your own assignments. Get the best support and achieve your desired results with our professional services.
Hire Assignment Helper Today!
Let's Book Your Work with Our Expert and Get High-Quality Content