Find Jobs
Hire Freelancers

Airline reservation

$30-250 USD

Completed
Posted over 8 years ago

$30-250 USD

Paid on delivery
A central computer holds the database for airlines reservations for Adirondack Air which runs four flights numbers 1 through 4. The plane capacities for these flights are 5, 2, 10, and 10, respectively. Travel agents from all over the world can access the reservation system by running a local application which calls up the central computer and runs an interactive session that supports the following commands: Format of Command: Query for number of seats available on flight x: Q x Reserve seats I, j, etc. user name nm: R I j .. nm Cancel seats for flight x under name n: C x n The query command will first display the seat numbers of all the available seats on flight x if there are any. If none are available, the query ends with the message “none available.” Otherwise, the travel agent may book any number of those seats for a name (say Jones) with the command R 1 6 2 9 Jones. Here 1 6 2 9 is the list of seats that are to be reserved for Jones. You should check that the requested seats are in the list of available seats. Any number of agents may access the reservation system concurrently. You will need to lock the flight record for the duration of this transaction so no other agent can take an available seat in the interim. If there is already a lock on the data, the server should send an explanatory message to the travel agent, because the agent will have to wait. If the travel agent responds with a C (cancel), terminate the query without allocating any seats. Cancel should make available all seats under the given name on the specified flight, and then display the current number of seats now available. On the server’s monitor, display the current state of the database in real time. Indicate which seats are reserved and by whom. As soon as a change occurs, the screen should be updated. On the same screen show which clients are currently active. The system should be robust in the sense that any erroneous command elicits a reasonable error message. Communication over the network will use sockets. The database will be in one file. The data on the file will be locked at the record level by the Unix lock system call. The server will fork a child to handle each new interaction session from a travel agent. Use TCP/IP sockets to communicate between server and clients. In other words, use the method described in section 6.4.1, “Per-Client Processes”, of the book TCP/IP Sockets in C. Test your program by having the agents read a series of commands from a file and record the output on the server to see that it is consistent with the order of messages from the agent clients.
Project ID: 8205530

About the project

5 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
Awarded to:
User Avatar
Well sir i am expert in C and i can work for you in given amount and in given time .. So sir let me know if you are interested in my offer ... Thanks ..
$166 USD in 3 days
5.0 (1 review)
0.4
0.4
5 freelancers are bidding on average $159 USD for this job
User Avatar
Programming expert in python Coursera Data Science & R Certified Successfully 11 Completed Freelance Project https://www.freelancer.com/jobs/r/programming-Hadoop/ https://www.freelancer.com/jobs/project-7399544/ (Hadoop pig and impala queries) • Applying Analytics using R Programming Language. RHadoop rmr2,rhdfs,rhbase • Applied Time Series Analytics(Arima) for Oil Client for Predecting Oil Production from Oil Plant. DataMining on Facebook , LinkedIn, twitter accounts • 6 years of IT experience in BI & Big Data Hadoop DWH Solutions for Banking , Oil & Gas domain. Data Streaming expertise using Apache Kafka, apache hadoop, apache spark, apache storm, exp on Big Data ,Hapdoop & R ,Apache Suites like Solr , HIVE , HBASE , CouchDB ,MongoDB,Redius,Neo4j, Kafka integration on Hadoop and Ubuntu • Data Mining LinkedIn, Facebook, Twitter • Expert in ETL Tools such as Informatica , SAP BODS , Pentaho, Talend • Excellent analytical and programming skills(Java / Python /C++) with a good understanding at the conceptual level and possess excellent presentation, interpersonal skills with a strong desire to achieve specified goals along with excellent communication skills. • Building Information Views ,Stored Procedures, Triggers, Materialized Views, Cursors, Partitioning, Exception handling, Optimization on DB likes Oracle SAP HANA. • Expertise in Software Development by applying SDLC practices
$250 USD in 5 days
0.0 (0 reviews)
2.4
2.4
User Avatar
Hi! I can program your client-server application in Python. I usually program for Linux, but if you need to run it on Mac - no problem.
$100 USD in 10 days
0.0 (0 reviews)
0.0
0.0
User Avatar
If I am given a chance then I will complete your application within 7 days as per your uploaded files requirement Thank you You may contact me to discuss anyting regarding implementation
$155 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Although I am new to freelance but I have excellent C programming skills.
$122 USD in 10 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Beaumont, United States
5.0
1
Payment method verified
Member since Aug 4, 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.