Question: USING C# 1-p La 2(1-P) 2. Develop a public function that calculates and returns the average length of a server queue. For an MM/1 queue
USING C#
1-p La 2(1-P) 2. Develop a public function that calculates and returns the average length of a server queue. For an MM/1 queue (single server, exponential processing and arrival rates), Lq= pa while for an M/G/1 queue (single server, exponential arrival rate and any distribution for processing rate) 2*a+p pis utilization of the server (a value 20 and 0), and as is the standard deviation of the server processing time (value > 0). These values should be passed to the function (and should be optional arguments). Use an enumeration to define the queue type. The function should print an error message and then throw an exception if any of the arguments are out of range. 1-p La 2(1-P) 2. Develop a public function that calculates and returns the average length of a server queue. For an MM/1 queue (single server, exponential processing and arrival rates), Lq= pa while for an M/G/1 queue (single server, exponential arrival rate and any distribution for processing rate) 2*a+p pis utilization of the server (a value 20 and 0), and as is the standard deviation of the server processing time (value > 0). These values should be passed to the function (and should be optional arguments). Use an enumeration to define the queue type. The function should print an error message and then throw an exception if any of the arguments are out of range
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
