Using java socket programming, write a server program and a client program based on the following requirements. (a) The server listens for request from the client program and will display the following options to the client. 1. Calculate the surface area of a rectangle 2. Calculate the length of a string 3. Calculate the volume of a sphere
Computer Science
Using java socket
(a) The server listens for request from the client program and will display the following options to the client.
1. Calculate the surface area of a rectangle
2. Calculate the length of a string
3. Calculate the volume of a sphere
The server program will request the necessary input from the client based on the selected option and return the results to the client to be displayed.
(b) The client program will display the options from server and provide all the necessary input to the server. All results from the server will be. displayed on the client side.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 8 images