Find Jobs
Hire Freelancers

Write a Scheduling Algorithm in C Language

$10-30 USD

Zrušeno
Zveřejněno před více než 6 roky

$10-30 USD

Zaplaceno při doručení
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.
IČ projektu: 15875154

O projektu

12 nabídky
Vzdálený projekt
Aktivní před 6 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
12 freelanceři nabízejí v průměru $29 USD za tuto práci
Avatar uživatele
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 v 2 dnech
4,9 (101 recenze)
6,8
6,8
Avatar uživatele
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 v 2 dnech
5,0 (7 recenze)
3,9
3,9
Avatar uživatele
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 v 3 dnech
5,0 (3 recenze)
2,7
2,7
Avatar uživatele
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 v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
I love this job cause it once my best part while working
$25 USD v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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 v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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 v 2 dnech
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
A proposal has not yet been provided
$15 USD v 1 dni
0,0 (0 recenze)
0,0
0,0

O klientovi

Pochází z PAKISTAN
Faisalabad, Pakistan
5,0
2
Ověřená platební metoda
Členem od pro 20, 2005

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.