I will include a basic java server program and android app example for you to get you started. See the Photos attached for full details.
(A)“BigDecimalArithmetic” Server: Write a Java program that acts as a sequential server to process requests for performing operations on two (large)numbers from clients. The possible operations that your server can handle are:
•add: add the two numbers
•sub: subtract the second number from the first number
•mult: multiply the two numbers
•shuffle: “shuffle” the two numbers (see below for details)
Your program should operate as follows:
(1)Listen for a connection request from a client.
(2)Make the connection.
(3)Read the operation from the client.
(4)Read two numbers(strings) from the client.
(5)Perform the requested operation on the two numbers.
(6)Return the result to the client. (It may be a calculated value or an error message.)
These steps should be repeated over and over again until the server is manually shut down(for example, using CTRL-c in the Linux environment). Note that the server performs only one operation per connection. If a client were to want another operation performed, then it would have to establish (request) another connection. The server should be listening for further requests.
(B)Client App: Write an Android app as a client to test your server. The app should consist of two (or more) activities. The Main Activity requests the domain name and port of the server from the user. It then invokes a second activity that, for example, establishes the connection to the server; interacts with the user to get the desired operation and the two numbers; sends the request to the server; retrieves and displays the result of the operation from the server; and then disconnects. (If the result is an error, then that should be displayed instead.) If the user wishes to process another operation, they need to reconnect to the server by going back to the Main Activity’s UI.
Hello there! I have went through the project description. I understand the requirements and I am available to take this on. Feel free to message me and we can get started right away. Thanks