Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: - Practice how to use basic JAVA programming skills and implement two JAVA programs using sockets for data communication between a server and a

image text in transcribedimage text in transcribed

Objectives: - 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. Requirements: 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. 4. Repeat Step 2 and 3 above for the input files "client_input 2 .txt" and "client_input3.txt", respectively. Totally, you will have 6 screenshots ( 2 for each input file). 5. All three input files "client_input1.txt", "client_input2.txt" and "client_input3.txt" are attached to this assignment. You will need to run both the server and client programs three times, one for each input file. How does the client program process the input file "client_input.txt"? Each input file "client_input".txt" contains a list of positive integers separated by a comma. Assume that the input file contains an ordered list of positive integers such as 5,4,3,2,1,1000,27,18,10,5,6,1,9,4,2,3. 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 How to submit this assignment? 1. Copy \& paste all 6 screenshots below ( 2 screenshots for each input file). Upload this Word document to CougarView. Do NOT upload the screenshots individually. 2. Upload to CougarView the ZIP file of JAVA source code of your client program. 3. Upload to CougarView the ZIP file of JAVA source code of your server program

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

What are the key objectives of trade promotions?

Answered: 1 week ago

Question

Compare a delusion with a hallucination.

Answered: 1 week ago

Question

Excel caculation on cascade mental health clinic

Answered: 1 week ago

Question

1. Identify and control your anxieties

Answered: 1 week ago