0% found this document useful (0 votes)
33 views14 pages

College of Engineering &computer Science

This document outlines an assignment for a data modeling and simulation course at Jazan University, detailing tasks related to queue simulation, service time calculations, and revenue analysis for newspaper sales. It includes specific questions and tables that students must complete to analyze customer wait times, service times, and profitability. The assignment is due on March 8, 2025, and is worth 10 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views14 pages

College of Engineering &computer Science

This document outlines an assignment for a data modeling and simulation course at Jazan University, detailing tasks related to queue simulation, service time calculations, and revenue analysis for newspaper sales. It includes specific questions and tables that students must complete to analyze customer wait times, service times, and profitability. The assignment is due on March 8, 2025, and is worth 10 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

202201172 ‫ابراهيم عادل حسني النعمي‬:‫االسم‬

KINGDOM OF SAUDI ARABIA | JAZAN UNIVERSITY


COLLEGE OF ENGINEERING &COMPUTER
SCIENCE
ASSIGNMENT - 1 / 2024-25 - SECOND SEMESTER
Course Name & Data Modeling and
Section 2935
Code Simulation/COMP 324
Type of task Assignment - 1 Marks 10
Date of Last date for
08-02-2025 08-03-2025
Announcement submission
COURSE TEACHER: Alighazi Siddiqui

Assignment - 1

Q.1 Complete the Simulation table for a single channel by computing Time service begins, Time
Customer Waits in Queue, Time Service Ends, Time Customer Spends in System and Idle Time of
Server:

Time Time
Customer Customer
Service Time Waits in Time Spends in Idle Time
Arrival Time Service Queue Service System of Server
Customer Time (Minutes) Begins (Minutes) Ends (Minutes) (Minutes)
1 0 2

2 3 2

3 4 5

4 8 6

5 10 3

6 15 2

7 23 2

8 31 3

9 37 4

10 43 2

Answer the following questions:

1
Q.1 Complete the Simulation table for a single channel by computing Time service begins, Time
Customer Waits in Queue, Time Service Ends, Time Customer Spends in System and Idle Time of
Server:

What is the average waiting time for a customer?


What is the probability that a customer has to wait in the queue?

What is the fraction of idle time of the server?

What is the average service time?


What is the average time between arrivals?

What is the average waiting time of those who wait?

What is the average time a customer spends in the system?


a. What is the average waiting time for a customer?
b. What is the probability that a customer has to wait in the queue?
c. What is the fraction of idle time of the server?
d. What is the average service time?
e. What is the average time between arrivals?
f. What is the average waiting time of those who wait?
g. What is the average time a customer spends in the system?

Q2 Complete the following simulation table

FOR ABLE

Service Probability Cumulative Random Digit


Time Probability Assignment

2 0.20

3 0.38

4 0.25

5 0.17

FOR Baker

Service Probability Cumulative Random Digit


Time Probability Assignment

3 0.15

4 0.30

5 0.28

6 0.22

Random digits for service are:

95, 11, 45, 66, 42, 22

Caller Inter Arrival ABLE BAKER

2
No. Arrival Time TSB Service TSE TSB Service TSE
Time Time Time

1 - 0

2 2 2

3 4 6

4 2 8

5 2 10

6 1 11

Q.3 Complete the following simulaHon table for purchase of 60 newspapers by compuHng revenue from sales,
loss proNt from excess demand, salvage from sale of scrap and daily proNt.
Cost data
Unit cost 0.22
Unit price 0.40
Unit lost 0.18
Unit refund 0.05
Purchase 60

Random Lost
Digits Random Profit
for Type Digits Revenue from Salvage
of Type of for from Excess from Sale Daily
Day Newsday Newsday Demand Demand Sales Demand of Scrap Profit
1 0.94 Poor 0.90 70
2 0.51 Fair 0.35 60
3 0.46 Fair 0.84 70
4 0.78 Fair 0.65 60
5 0.24 Good 0.84 90
6 0.47 Fair 0.66 60
7 0.40 Fair 0.89 80
Total
AvgProfit
MinProfit
MaxProfit

3
Q2 FOR ABLE
Complete the following simulation table
Question 4. Compute the following quantities in a Queueing system from the data given below:

Total Number of customers = 15


Total Time Customers wait in the queue = 100 minutes
Total Service time = 58 minutes
Total Number of customers who wait = 11
Total Idle time of Server = 12 minutes
Total Run time of simulation = 75 minutes

(i) Average waiting time for a customer.


(i) Probability that a customer has to wait in the queue.
(ii) Probability of idle server.
(iii) Average Service time.

Question 5 Complete a Simulation table for checkout counter using the Event Scheduling/ Time
Advanced algorithm for below given table.

Service Time Inter-arrival Arrival Time Time Service Time Service


Time begin End

3 --

5 5

3 4

2 3

1 3

3 1

The simulation is scheduled to stop at time 60

System State Future Event List


Clock
LQ(t) LS(t)

4
5

You might also like