Find Jobs
Hire Freelancers

Write a Scheduling Algorithm in C Language

$10-30 USD

Annullato
Pubblicato più di 6 anni fa

$10-30 USD

Pagato al completamento
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.
Rif. progetto: 15875154

Info sul progetto

12 proposte
Progetto a distanza
Attivo 6 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
12 freelance hanno fatto un'offerta media di $29 USD
Avatar dell'utente
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 in 2 giorni
4,9 (101 valutazioni)
6,8
6,8
Avatar dell'utente
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 in 2 giorni
5,0 (7 valutazioni)
3,9
3,9
Avatar dell'utente
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 in 3 giorni
5,0 (3 valutazioni)
2,7
2,7
Avatar dell'utente
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 in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
I love this job cause it once my best part while working
$25 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
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 in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
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 in 2 giorni
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
A proposal has not yet been provided
$15 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: PAKISTAN
Faisalabad, Pakistan
5,0
2
Metodo di pagamento verificato
Membro dal dic 20, 2005

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.