The goal of this homework is to practice socket programming.
Perform the following:
Example:
Server:
> java MathServer 5000
> [listening on port 5000]
> 1 client connected
> [Receive problem ((10 + 20) * 90) / 5]
> [Receive problem 1 + 1 + 1 + 1 + 1 - 10]
> 1 client connection close
(Server continues running to wait for other clients)
Client:
> java MathClient myhost 5000
> [Connected to MathServer, please type QUIT to quit]
> Please type a math problem
> ((10 + 20) * 90) / 5
> [Server Response]: 540
>
> Please type a math problem
> 1 + 1 + 1 + 1 + 1 - 10
> [Server Response]: -5
>
> Please type a math problem
> QUIT
> [Connection Close]
> [Quitting Client]
>
Notes: Answers has to be in MS-word format with necessary screen shot, etc. Please handin with CD (if necessary) and hard copy in its own envelope.