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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started