Find Jobs
Hire Freelancers

System Calls & I/O Handling

$10-30 USD

I përfunduar
Postuar over 5 years ago

$10-30 USD

Paguhet në dorëzim
I need help with this mini project. It requires knowledge in C++. You are to write a program which will reserve tickets for a concert. Our concert hall is very small and has only 5 rows of 8 seats each. A random access file is to be used to keep track of which seats have been reserved. Each seat will have one byte reserved to indicate whether it is taken or not. The seat sin row ris recorded in byte (8*r + s-1) of the file where r=1, ..., 5; s=1, ..., 8. You may simply record an "O" [as Occupied] in byte(8*r + s-1) to indicate that the seat is Occupied. You may create the random access file prior to running the programs. It simply needs to have zero length. Run your program [login to view URL] and log the output using script or photo in concertA.log. Every request will be followed by a confirmatory response from the program with the reserved seats numbersin their [login to view URL] time and date of reservation should also be printedin the confirmationso that one can ascertain at what timeand datethe request was entered. Your data file should be named [login to view URL] becreated firstand should have its protection set by the commands:$ touch [login to view URL]$ chmod ug+lrw [login to view URL] Page 2of 3Your program should prompt for a function:$ Reserve or Display>Entering D results in a display of the occupied seats while entering an R causes prompts for the row numberand then for a range of seat numbers. EnteringQ quits the program. All file entries should be in raw I/O format[using buffers]with error control and boundary checking. It should be possible to enter a single symbol(char)to reserve one [login to view URL] 1:Reserve seats 2-5in row 1Reserve seats 4-7in row 2Attempt to reserve seat 4in row 2–rejectedReserve seat 3 in row 1Display reserved seats: (example output)12345678XOOOOOOOXXXOOOXXXXXXXXXXXXXXXXXXXXXXXXXXRun 2:Reserve seats 2-3 in row 4Attempt to reserve seats 5-9in row 5–rejectedDisplay reserved seats
ID e Projektit: 17803169

Rreth projektit

6 propozime
Projekt në distancë
Aktive 6 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
Hello, I have a lot of experience in C/C++ and Operating System, Algorithm and Data Structure. I am ready to discuss with you Thank you.
$40 USD në 1 ditë
4,9 (93 përshtypje)
5,9
5,9
6 freelancers are bidding on average $35 USD for this job
Avatari i Përdoruesit
I have plenty of experience writing programs like this. I have years of experience in c/c++ and also in systems programming. I can help you write this console program for concert seat reservation Relevant Skills and Experience Years of c and c++, years of systems programming. Solid grasp of low level file io with buffers
$50 USD në 1 ditë
5,0 (1 review)
2,2
2,2
Avatari i Përdoruesit
Dear Sir/Madam (unfortunately Freelancer.com doesn't tell us how to properly address you apologies), I have looked over everything basically - this is indeed a basic C++ program. I would like to clarify a few trivial matters: 1) From what I understood this would be best implemented as a command-line utility correct? There are 3 possible options: (a) Proper GUI (Qt for example) (b) command-line simple interface with all the queries and confirmations you mentioned & (c) command-line GUI similar to those achievable with Curses/NCurses. Let me know and we can chat about the subject.
$50 USD në 2 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
need details documentation for the requirement - and platform description. so can help in good understanding .
$25 USD në 3 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i UNITED STATES
Bowling Green, United States
0,0
0
Mënyra e pagesës u verifikua
Anëtar që nga sht 20, 2018

Verifikimi i klientit

Punë të tjera nga ky klient

System calls and I/O handling
$10-30 USD
Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.