Question: Question 1 Using Java socket programming components, write the server program and the client program based on the following requirements: (a) The server program listens

Question 1

Using Java socket programming components, write the server program and the client program based on the following requirements:

(a) The server program listens for request from the client program and will display the following options to the client. The server program will request the necessary input from the client based on the selected option and return the results to the client. Option A: Calculate and return the factorial of a given positive integer value. Option B: Calculate and return the volume of a pyramid based on the given base width, base length, and pyramid height. Option C: Calculate and return the surface area of a cylinder based on the given radius and cylinder height. (15 marks)

(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. (10 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!