Find Jobs
Hire Freelancers

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

₹1500-12500 INR

Slutfört
Publicerad över fem år sedan

₹1500-12500 INR

Betalning vid leverans
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])
Project ID: 17803943

Om projektet

1 anbud
Distansprojekt
Senaste aktivitet sex år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
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 dagar
4,9 (173 omdömen)
6,2
6,2

Om kunden

Flagga för INDIA
India
0,0
0
Verifierad betalningsmetod
Medlem sedan sep. 20, 2018

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.