You will write a networked client/server application which allows a client program to query a server program to fetch stock market information.

computer science

Description

You will write a networked client/server application which allows a client program to query a server program to fetch stock market information. Your programs will allow a user to examine stock prices for two major stocks namely Apple(AAPL) and Twitter(TWTR). The user will enter commands into the client program which runs on one machine. For each command entered by the user, the client program sends a message containing the query command. The server program receives the query and responds with a message containing the requested information. Below, we will describe the details of query commands and the format of the stock data.


1. Running the Client/Server

 The application is actually two different programs, the client program and the server program. These two programs should both be running as two separate processes which are invoked by the user in a shell. These two programs may be running on the same machine but they may be running on two different machines. Since the client and server are communicating using TCP/IP, you will need to select a port to use for communication. ICS Computer Support has advised us that ports 30000 – 60000 are all available for your use, so you can use any one of those ports.


2. Stock Data Format 

Your program will use historical stock prices of AAPL and TWTR as the stock prices used for buy and sell transactions. In addition to downloading this assignment from Canvas, you will need to download the following two files: AAPL.csv and TWTR.csv. These two files contain stock price data for AAPL and TWTR, respectively. When your server program starts executing, historical price data will need to be read from these two files before any transactions can be made by the client

Instruction Files
AAPL.csv
37.8 KB
TWTR.csv
35.2 KB

Related Questions in computer science category