Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications Dasfaa 2023 International Workshops Bdms 2023 Bdqm 2023 Gdma 2023 Bundlers 2023 Tianjin China April 17 20 2023 Proceedings Lncs 13922

Authors: Amr El Abbadi ,Gillian Dobbie ,Zhiyong Feng ,Lu Chen ,Xiaohui Tao ,Yingxia Shao ,Hongzhi Yin

1st Edition

3031354141, 978-3031354144

More Books

Students also viewed these Databases questions

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago