Find Jobs
Hire Freelancers

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

₹1500-12500 INR

완료함
게시됨 5년 이상 전

₹1500-12500 INR

제출할때 지불됩니다
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: 17803943

프로젝트 정보

제안서 1개
원격근무 프로젝트
활동 중 6년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
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 2일에
4.9 (173 건의 리뷰)
6.2
6.2

고객에 대한 정보

국기 (INDIA)
India
0.0
0
결제 수단 확인
9월 20, 2018부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.