Find Jobs
Hire Freelancers

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

₹1500-12500 INR

Selesai
Disiarkan lebih dari 5 tahun yang lalu

₹1500-12500 INR

Dibayar semasa penghantaran
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])
ID Projek: 17803943

Tentang projek

1 cadangan
Projek jarak jauh
Aktif 6 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
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 dalam 2 hari
4.9 (173 ulasan)
6.2
6.2

Tentang klien

Bendera INDIA
India
0.0
0
Kaedah pembayaran disahkan
Ahli sejak Sep 20, 2018

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.