Find Jobs
Hire Freelancers

Write a Scheduling Algorithm in C Language

$10-30 USD

キャンセル
投稿日: 6年以上前

$10-30 USD

完了時にお支払い
A train station has just one common line for all the trains to pass through it. The train station needs to automate trains scheduling, i.e. an order in which trains go through the common line. The train station receives trains that have different levels of importance, i.e. importance of how they should quickly arrive to their destinations. Firstly, trains must enter to the check point. In this train station, there is one check point serving trains. As a result, only one train can enter to the check point at a time even if several trains arrived at the same time to the station. At the check point, the station's workers determine the priority of the entered train. Moreover, they estimate the time that the train will take it in the common line. Usually the priority of the train is given depending on their types [passenger train, train of goods (full), and train of goods (empty)]. Obviously, if there are trains with same type, the one with earlier arrival time is assigned a higher priority. And in the case of tie, the higher priority is given to one train in random. Similarly, the time a train takes it in the common line is decided based on the train's type. For instance, a passenger train is given a time ranging from 20-30 minutes, a train of goods (full) from 40-50 minutes, and a train of goods (empty) from 30-40 minutes. Design a system for the train station which automates the operation of admitting the trains to the station and scheduling them to the common line. In order to completely simulate the train station system, read the trains' information from the input file. However, their information cannot be stored in the program simultaneously. Particularly, you need to ensure that registering/storing the data of one train only is done at time. After you finish storing all the trains' information using the appropriate data structures and methods, you will find the order in which the trains will be assigned to go through the common line. In other words, you will find the schedule of treating the trains using the priorities given by the workers in the check point earlier. At the end, calculate the average waiting time and average turnaround time for all trains coming to the train station. Assume the time is given in minutes. For More details look at the attached spects document.
プロジェクト ID: 15875154

プロジェクトについて

12個の提案
リモートプロジェクト
アクティブ 6年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に12人のフリーランサーが、平均$29 USDで入札しています
ユーザーアバター
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on client side, using c++ under windows environment. I used c++ to make many great projects, for example, I made the tools which can convert java files into c++ scripts, of course garbage collection included, this job is very similar to a compiler, and is very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$120 USD 2日以内
4.9 (101 レビュー)
6.8
6.8
ユーザーアバター
Hello, I can do and finished your projects ... I have good experience on OS concept.. See my profile for more details.. Your projects is about simulation of scheduler algorithms using as abstraction Train... So Let's make it ... A good example of data structure of the projects would like this typedef struct { char priority; /** We used this to represent the priority of the train **/ char direction; /** We used this to represent the direction where the train should go **/ }Train; and we used this snippet to open the file /*if loops for checking input*/ if(argc <3){ fprintf(stderr, "not enough inputs\n"); exit(0); }else{ infile_name = argv[1]; trainNum = atoi(argv[2]); } f = fopen(infile_name,"r"); if (f == NULL){ printf("Unable to open file \"%s\" for reading.\n",infile_name); return 0; }
$30 USD 2日以内
5.0 (7 レビュー)
3.9
3.9
ユーザーアバター
Hi My Self J.D.Rathod. Currently I am working as a Lecturer In Computer Dept. (VGEC-Chandkheda).I am interested in your project , wait for your responses....
$35 USD 3日以内
5.0 (3 レビュー)
2.7
2.7
ユーザーアバター
Hi ... I am expert in thisand have done this type of work before I will provide you a quality work on time according to your requirement kindly consider my proposal
$15 USD 1日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
I love this job cause it once my best part while working
$25 USD 1日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
i read you description. i can do this code for you! here me ! if you need any help just pin me on facebook : Name : Vitthal Aradwad : facebook group: LetsTalkOnJavaProject and Page : JAVAHELPs if you do not want to hire me then also hire me outside, i will solve this current problem for free of cost just pin me. its free for you :) , so hire me to help you
$10 USD 1日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
I am new here but i am working on c language from last 3 years. I make 4 college projects on c programming language.
$10 USD 2日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
A proposal has not yet been provided
$15 USD 1日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

PAKISTANのフラグ
Faisalabad, Pakistan
5.0
2
お支払い方法確認済み
メンバー登録日:12月 20, 2005

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。