I've recently been set some coursework to create a TCP client/server inventory program (java) and I'm really confused. I have the client/server code, I just don't know how to meet the criteria as follows. If someone could point me in the right direction, it would be much appreciated as I'm really stressing out. Thanks!
A CD shop with an inventory containing the following items:
item code CD name Artist Name Price Quantity in stock.
The inventory should be read by a TCP server program from a file separated by tabs. (text file)
The server waits for client requests and transmits the inventory if an "I" is received.
If a "B" followed by an item code is received, the quantity in stock should be updated to reflect that an item has been bought.
A client program should connect to the server, download the inventory and display it to the customer.
The customer should be able to buy any item by typing in the item's code. A shopping trolley should keep track of the items selected by the customer and give a total price for the whole transaction.