| Description: required to design and implement a distributed application that is a simulator of an on-line auction.
There will be multiple clients and a server. The server will offer items for sale. The client module will allow the user to bid for items. An item is sold to the highest bidder. Your code will enable users only to bid for items – it will not conduct actual credit card transactions.
Client Specification - Connects to the server. The item currently being offered for sale and the current bid are displayed. - Enter the bid. The amount entered should be greater than the current highest bid. - After a new bid is placed, the amount of the new bid is displayed on the client’s window/console.
Server Specification - Receive connections from multiple clients. - After a client connects, notify the client which item is currently on sale and the highest bid (or reserve price). - Specify the bid period. Max allowed 2 minutes. When a new bid is raised, the timer is reset back. - When a new bid is placed, all clients are notified. Clients should be notified about the time left for bidding. - If the bid period elapses without a new bid, then the auction closes. The successful bidder (if any) is chosen and all clients are notified. - When one auction finishes, another should start.
Implementation must be implemented using Java sockets. Basic JDK version 1.6 with minimal class path should be used. No additional libraries/packages should be used. If data storage is necessary, i.e. text files should be used.
|