Find Jobs
Hire Freelancers

Write a Scheduling Algorithm in C Language

$10-30 USD

Cancelled
Posted over 6 years ago

$10-30 USD

Paid on delivery
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.
Project ID: 15875154

About the project

12 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
12 freelancers are bidding on average $29 USD for this job
User 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 in 2 days
4.9 (101 reviews)
6.8
6.8
User 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 in 2 days
5.0 (7 reviews)
3.9
3.9
User 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 in 3 days
5.0 (3 reviews)
2.7
2.7
User 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 in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I love this job cause it once my best part while working
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User 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 in 1 day
0.0 (0 reviews)
0.0
0.0
User 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 in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of PAKISTAN
Faisalabad, Pakistan
5.0
2
Payment method verified
Member since Dec 20, 2005

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.