Find Jobs
Hire Freelancers

c programming code

$10-30 CAD

Closed
Posted about 9 years ago

$10-30 CAD

Paid on delivery
You are to make a simulation of a printer queue. Print jobs will be submitted to the queue and then the printer will print those jobs. You can implement your queue using an array or a linked list. If you use a very efficient structure (either an array which uses an offset integer to avoid shifting elements, or a head- tail doubly-linked list), you will receive bonus marks. Your program will read in input from standard input. If a line begins with a + symbol, a new print job will be added to the queue. If a line begins with a - symbol, a job will be served from the queue. If a line doesn't begin with either, then your program will exit. Each job queue has a print job ID (an integer) as well as a number of pages (also an integer). Here is some example input: + 1 4 + 2 6 + 3 1 - + 4 5 - - - + 5 3 - done And here is the output your program would generate for that input: Printing job 1 (4 pages) (queue is not empty) Printing job 2 (6 pages) (queue is not empty) Printing job 3 (1 pages) (queue is not empty) Printing job 4 (5 pages) (queue is empty) Printing job 5 (3 pages) (queue is empty) You only produce output when a - symbol is seen and you're printing something. Each time you see a - symbol, you serve a job from the queue, display information about it, and display a message saying whether the queue is currently empty or not.
Project ID: 7336377

About the project

34 proposals
Remote project
Active 9 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
34 freelancers are bidding on average $24 CAD for this job
User Avatar
A proposal has not yet been provided
$25 CAD in 1 day
4.9 (824 reviews)
7.1
7.1
User Avatar
Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C and algorithm skills. I am focused mostly on doing computer science work here in freelancer.com and I would like to help you get this project done if you would give me the opportunity. I am a computer science professor and practitioner and this assignment is one of the fields that I teach very well so I can assure you an accurate result. Let me know if you are interested so I can start. Thanks.
$30 CAD in 0 day
4.9 (481 reviews)
6.9
6.9
User Avatar
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$50 CAD in 1 day
4.9 (95 reviews)
6.7
6.7
User Avatar
Hello I am C expert and interested in this project. I have reviewed your requirements and confident to handle this project perfectly. I will produce correct output format. Please communicate to discuss further. Regards Anshu
$30 CAD in 1 day
4.7 (83 reviews)
6.0
6.0
User Avatar
hi, i have 7 years c/c++/java programming experience under windows, linux system,i can do the job well
$30 CAD in 1 day
4.8 (28 reviews)
4.5
4.5
User Avatar
Hello, I can give you an exact solution which will earn you 100% credits. Feel free to contact me for further discussion
$30 CAD in 1 day
5.0 (20 reviews)
4.2
4.2
User Avatar
Hi I am an expert C programmer and have lot of experience experience programming university solutions. I can do this project for you. PM me if interested
$30 CAD in 1 day
4.9 (12 reviews)
4.4
4.4
User Avatar
I am interesting on doing this project. I can provide clean and well commented code and also make it look simple and not to elaborated. Please open chat for details
$15 CAD in 1 day
5.0 (21 reviews)
4.1
4.1
User Avatar
hi I'm experienced c/c++ developer working currently in nokia. i done many students projects so far i provide well commented code
$20 CAD in 1 day
4.9 (11 reviews)
3.9
3.9
User Avatar
I have done two similar projects recenty which are about CPU task queue, so I could help.
$30 CAD in 1 day
4.6 (11 reviews)
3.2
3.2
User Avatar
I have c++ experience of 5 years, this is a 10 minute task for me. I will use linked lists and make it efficient.
$25 CAD in 1 day
5.0 (2 reviews)
1.8
1.8
User Avatar
Sir, I can do this very easily.I have experience in C/C++.You can check my portfolio by visiting my profile.I have done such projects and I will completely will well commented code do this job, so you have a total understanding. Best Regard.
$20 CAD in 3 days
3.8 (3 reviews)
1.7
1.7
User Avatar
I teach C programming. I can easily do this using a linked list with page and a status flag. The flag is just set/unset when jobs are printed or added. This flag will be the basis on the state of the display.
$10 CAD in 1 day
5.0 (1 review)
1.2
1.2
User Avatar
Hello, I am a Computer Engineering student and I have experience with C programming. I can solve this problem easily and explain it to you how it works. Let me know if you have any questions. Thank You, Alex
$20 CAD in 1 day
5.0 (1 review)
0.9
0.9
User Avatar
A passionate programmer and student. I will work out your code right now. Please hire me for the best customer experience.
$25 CAD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I already done stuffs like these for shops :D,but it was a bit harder then I needed to make designs etc. This is simple :)
$15 CAD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$35 CAD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
i can make this work. i do job cheap as student need money...............................................................................................................................
$25 CAD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I'm a third year computer science student and I work as a software developer. I've got a lot of experience with C and this kind of problems, so I could easily help you, if you'd like. Lucia
$20 CAD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have experience of three years in languages and have very strong skills in C and C++. Hire me if you want a efficient and good solutions :)
$25 CAD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Canada
0.0
0
Member since Feb 23, 2015

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.