Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using c# For problems #1-5, create a single console application. In it (and outside the curly brackets of class program), create a class MyLab06. All

using c#

For problems #1-5, create a single console application. In it (and outside the curly brackets of "class program"), create a class "MyLab06". All the following functions (Q#1-5) must be defined in this new class with public scope. Also illustrate calling each function from void main in the class "program". Each problem is worth 20pts.

Develop a public function that calculates and returns the average length of a server queue. For an M/M/1 queue (single server, exponential processing and arrival rates), Lq = 21- , while for an M/G/1 queue (single server, exponential arrival rate and any distribution for processing rate) Lq = 2s2+22(1-) ; r is utilization of the server (a value 0 and < 1), l is the arrival rate to the queue per unit time (value > 0), and ss is the standard deviation of the server processing time (value > 0). These values should be passed to the function (l and ss 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. Develop a public function that calculates and returns the average length of a server queue. For an M/M/1 queue (single server, exponential processing and arrival rates), Lq = 21- , while for an M/G/1 queue (single server, exponential arrival rate and any distribution for processing rate) Lq = 2s2+22(1-) ; r is utilization of the server (a value 0 and < 1), l is the arrival rate to the queue per unit time (value > 0), and ss is the standard deviation of the server processing time (value > 0). These values should be passed to the function (l and ss 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions

Question

Vectors

Answered: 1 week ago

Question

Knowledge of process documentation (process flow charting)

Answered: 1 week ago