Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a C# programming assignment. I have seen several of the same type of question answered with completely unrelated data. Please read the whole

This is a C# programming assignment. I have seen several of the same type of question answered with completely unrelated data. Please read the whole thing, as I am completely lost with this assignment, and help is appreciated!

In this assignment you will use the .NET Collection Classes in C# to build a simulation of an airline ticket counter.

Problem Assignment

You have the misfortune to have a taken a job in the IT department of Paranoid Airlines ("They Hate To Fly, And They Hate You, Too!"). Paranoid Airlines has just received the "award" for the worst customer service in history (so bad that even the cable companies look good in comparison). So, they want you to do some simulations to just see how bad their business has become.

Paranoid Airlines arranges their check-in counters so that they have one customer service position for Economy passenger, Business Class passengers, and First Class passengers. They also have three lines, one line for each class of passenger.

2.1 A few rules

If the line for First Class passengers is empty, then the agent serving the First Class line can assist customers in the Business Class line.

If the line for First Class passengers is empty and the line for Business Class passengers is empty, then the agent on the First Class line can assist passengers in the Economy line.

If the line for Business Class passengers is empty, then the agent at the Business Class customer position will first see if there are customers in the First Class line. If that line is empty, then the customer service agent will service customers in the Economy line.

If the Economy class line is empty, then the customer service agent in that position will assist First Class passengers first, and then Business class passengers.

2.2 Customer arrival rates and service times

The system will keep a simulated clock that starts at zero and counts the simulated number of minutes in the simulation.

The simulation will run 12 hours (or 720 minutes).

Customers will randomly arrive in the Economy line at the rate of 1 every 3 simulated minutes

Customers will randomly arrive in the Business Class line at the rate of 1 every 15 simulated minutes.

Customers will randomly arrive in the First Class line at the rate of 1 every 30 simulated minutes

It takes a customer service agent randomly between 5 - 10 minutes to assist an Economy Class customer

It takes a customer service agent randomly between 6-12 minutes to assist a Business Class customer

It takes a customer service agent randomly between 5 - 20 minutes to assist an First Class customer

2.3 Output

Your simulation needs to run for a simulated 12 hours (720 minutes). Every 10 time ticks, your program needs to display how many customers are in each line and whether or not a customer agent is assisting the customer. At the end of the simulation, your program needs to display the average time customers spent in each line, the total numbers of customers assisted in each class, and the average and maximum length of each line over the course of simulation

2.4 Implementation requirements

Dont do this as one large function in your Main() method. Youre using an object-oriented language. . . take advantage of that fact.

Dont implement your own data structures! Use the classes in the System.Collection.Generic framework.

Use Console output.

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

Step: 3

blur-text-image

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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions