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.
Ταυτότητα εργασίας: 15875154

Σχετικά με την εργασία

12 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 6 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
12 freelancers δίνουν μια μέση προσφορά $29 USD για αυτή τη δουλειά
Avatar Χρήστη
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
Avatar Χρήστη
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
Avatar Χρήστη
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
Avatar Χρήστη
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
Avatar Χρήστη
I love this job cause it once my best part while working
$25 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
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
Avatar Χρήστη
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
Avatar Χρήστη
A proposal has not yet been provided
$15 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της PAKISTAN
Faisalabad, Pakistan
5,0
2
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Δεκ 20, 2005

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.