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 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
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)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。