On this assignment I have partial code and just need to code completed and returned.Below is the instructions and files of the partial code is a
Complete Lab 3 –Rental Car Client/Server. A complete set of instructions can be found in the Lab Overview under Week 3.
Submit your lab.
——————
This week’s assignment is to design and build a rental car management system using TCP and appropriate data streams. This is a multipart assignment. In the last phase of this assignment, you will have the opportunity to add threads and synchronization to this application. The application will be a rental car inventory management system. Cars can be added to the pool of cars available to rent. A car can be rented, and a car can be returned after rental. Any employee at the rental agency can do any one of these operations. More than one employee is expected to be performing these operations at the same time, so access to the information about the car inventory will need to be synchronized (when threads are added).
Required data per vehicle:
Server inventory data:
Output
Submit a Word document which contains the following: the written description of the message exchange from phase 1, the Message class code from Phase 1, screen shots of the output of both the client and the server programs from Phase 2, and your source code for the client and server from Phase 2.
Benefits
Understand how the client/server architecture is implemented and works.
iLAB STEPS
Implementation
Back to Top (Links to an external site.)Links to an external site.
The following phases should be implemented for this week:
Phase 1: Design the message exchange between the client and the server. For each of the operations described in this document, specify the details of what values the client sends to the server and what possible values the server sends back to the client. Make sure you consider any error returns from the server. Design your Message class based on this specification. Turn in a short written description of the Message exchange and your Message class source code. Your written description should be no more than one page.
Phase 2: Implement the TCP and Object stream network communication between the client and server. At this point, you should be able to send message objects between the client and the server and vice versa. Have your client sending a real add, get, rent, and return message. The server should display the contents of the received message, and return a message indicating the requested operation failed. The client should display the returned message content appropriately. Turn in screen shots of the client and server which illustrate the message exchange. Also turn in your client and server source code.
The following operations should be implemented on the server side:
User interfaces
Some of the source code that is required for the development of the client side GUI has been provided. The CarInventoryClient.java file is set up to be part of the default package of a CarInventoryClient project. This means that you need to create a project called CarInventoryClient, and copy the CarInventoryClient.java file into that folder. All other classes needed for the client should be part of this project.
WhatsApp us