Question
Please explain how to add the file to the client program and what port you should use and why. Practice how to use basic JAVA
Please explain how to add the file to the client program and what port you should use and why.
Practice how to use basic JAVA programming skills and implement two JAVA programs using sockets for data communication between a server and a client program. In this assignment, you are required to write two JAVA programs (a client and a server). The client program sends a message to the server program using TCP sockets, and then the server program display on its screen the message received from the client.
1. You need to write two JAVA programs, one client and one server program. Each program can have one or more JAVA classes.
2. You client program MUST process the input file (client_input1.txt), and then sends the processing result to your server program. The server program then displays the result on its screen.
3. Run your server program first, and then run your client program with the input file client_input1.txt. Take a screenshot of the running output for each of your two programs.
Your client program has to find the largest integer in the list that is the sum of another two numbers after that integer. In the above list, all the integers in red satisfy the condition, and 27 is the largest one among them as 27 = 18 + 9. Your client program MUST find the largest integer in the list that satisfies the condition and then sends it to the server program. Required outputs: Your client program MUST output all the integers in red satisfy the condition Your server program MUST display the largest one among them.
client1 5, 4, 33, 2, 12, 100, 200, 13, 10, 6, 4
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