Find Jobs
Hire Freelancers

Implementing queue in preferably in c++ or in other languages(python or java)

₹1500-12500 INR

Fullført
Lagt ut over 5 år siden

₹1500-12500 INR

Betalt ved levering
Your task for this assignment is to investigate some of the properties of queues. You should write a program which uses discrete, event based, simulation to model the queuing and service of a set of requests. Input consists of the following data: • The number of primary servers in the system. • The number of secondary servers in the system. • A set of service requests each consisting of an arrival time and two service times in the order primary followed by secondary. This set is terminated by a dummy record with arrival time and service times all equal to 0. (Note: the arrival times are sorted in ascending order). Your program should read the name of the data file from standard input and then read the data in the named file into the simulation as needed. The simulation is to be of a system with two sets of servers, primary and secondary, each set of servers associated with a queue. Customers arrive in the system and are served first by a primary server and, on completion of this service, by a secondary server. If all servers of a particular type are busy, the customer will enter either the primary or secondary queue as appropriate. The simulation should be run until the last customer has left the system. Output, to standard output will consist of the following data: • Number of people served. • Time last service request is completed. • Average total service time. • Average total time in queue(s). Both overall and separate. • Average length of queue. For each queue and overall. • Maximum Length of queue. For each queue and overall. • Total idle time for each server. Notes: • The simulation starts at time=0, not when the first customer arrives. • Assume that there are no more than 10 servers of each type, 20 total. • You should attempt to use dynamic data sparingly or not at all. • Your submission will be compiled and run using a script. Because of this the correct file name for your source code is essential. Check your submission receipt. • The sample data provided for testing will not be used for marking your program, a second data file will be used for this purpose. Programs must compile and run under gcc (C programs), g++ (C++ programs) java or python. Programs should be appropriately documented with comments. In addition to the code, a pdf file describing your solution should also be produced. This file should contain at least: 1. A high‐level description of the overall solution strategy: 2. A list of all of the data structures used, where they are used and the reasons for their choice. 3. A list of any standard algorithms used, where they are used and why they are used. See the attachment for input file([login to view URL])
Prosjekt-ID: 17803943

Om prosjektet

1 forslag
Eksternt prosjekt
Aktiv 6 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
Tildelt til:
Brukeravatar
HI..I am good and proficient in programming in C,C++,Java,Python as console based desktop applications and can help you write the queue simulation program in C++ or any other language.
₹5 000 INR om 2 dager
4,9 (173 omtaler)
6,2
6,2

Om klienten

INDIAs flagg
India
0,0
0
Betalingsmetode bekreftet
Medlem siden sep. 20, 2018

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.