Highlights
Objective:
Objective of this assignment is to write a simple client-server network application using the Remote Procedure Call (RPC) or the Remote Method Invocation (RMI) system.
Description:
You will write a simple air-ticket reservation system, using RPC/RMI mechanism. The reservation server (rsvserver) maintains the seat availability information and responds to client requests for reservation or availability. For simplicity, we are concerned about one flight on one date only. The reservation information will be maintained only in memory, no need to maintain a persistent database.
The flight contains 30 seats, 5 of business class and 25 of economy class. Price of ticket is a function of availability
business class -
first 3 tickets: $500 each
next 2 tickets: $800 each
economy class -
first 10 tickets: $200 each
second 10 tickets: $300 each
last 5 tickets : $450 each
Seats are numbered 1-5 for business class and 6-30 for economy class. For a particular class, the airline always sells tickets at lowest available price.
The reservation client (rsvclient) interacts with user and sends requests to the server based on user input. User input is taken as command line parameters, output is printed on the screen as text. In particular, the client may send the following requests to the server.
rsvclient list <server_name>
lists all available seats in different classes and price ranges. For example, if there is 3 business class seats and 7 economy class seats available, the output is business class:
1 seats at $500 each
2 seats at $800 each
Seat numbers: 3,6,9
economy class:
2 seats at $300 each
5 seats at $450 each
Seat numbers: 18,22,25,26,28,29,30
rsvclient reserve <server_name> <class> <passenger_name> <seat_number>
reserves the particular seat of the particular class for the particular passenger. Assume passenger name to be a single string without space. Class name is either “business” or “economy”. Request may fail if invalid seat number is provided (economy class seat number for business class reservation), or the given seat number is already sold.
Possible outputs
Successfully reserved seat #S for passenger N
Failed to reserve: invalid seat number
Failed to reserve: seat not available
rsvclient passengerlist <servername>
lists all booked passengers for both classes, including the seat number assigned for each of them
Alice business 2
Bruce business 5
Melissa economy 10
John economy 12
Eric economy 13
Implementation details:
You will implement both the rsvclient and the rsvserver program using either RPC or RMI. If you are more familiar with C, use RPC, or, if Java is your favorite, use RMI. Your rsvclient should handle all the three user requests. The rsvserver should maintain the reservation state and respond to the requests from the client pertaining to all the three functions.
This NET 4005: IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.