Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program aud a python program, one called IntegerSeqClient.java, aud one called integer seq_server.py. the server program should receives a stream of integers,

image text in transcribed

Write a Java program aud a python program, one called IntegerSeqClient.java, aud one called integer seq_server.py. the server program should receives a stream of integers, each integer on a separate line, sent by the client. integer_seq_server.py should print out all aumbers that are multiples of 13 or multiples of 31. The IntegerSeqclient.javs should generate a integers, as a sequence of digits, starting at I and going to a specified maximum. For example the first 4 integers would be sent as: IntegarscqClient.java should accept two command line arguments, the first specifies the host name of the server, the second specifies the port number of the server, and the third specifies the last integer. For example, the command: java IntegerSeoclient gartield.cs.mun.ca 8764 190 specifies that port 8764 should be used to connect to the integer seq_ server.py, that is running on garfield.cs.mun.ca. The I finished. ntegerSeqclient program should send integers from 1 to 100. A -1 should be sent to indicate the sequence is The integer_sea server.py should accept one command line argument that specifies the port of the Serversocket. A server listening on port 8764 is created with: python integr seqserver-py 8764 In addition, to printing the multiplies of 13 and 31 the server should count the multiplies. The couat should be seat back to the IntegerSeqClient program, when a -1 is received by integer see server.py. After sending the count, the server should close the connection, and wait for a new connection. After sending the integer sequence, Integerseqclient, should read the count, as a text line, sent by the integer_sea_server.py, print the count, and then terminate Test your client an d server program with the following commands python3 integer_seq server.py 8764 run this connand in one terminal window ava IntegerseoClient localhost 8764 100 use another terminal java IntegerSeuClient t localhost 8764 200 +in the different terminal Report the output of each program. You can base your solution on LineClient.jsva and line server.py. Write a Java program aud a python program, one called IntegerSeqClient.java, aud one called integer seq_server.py. the server program should receives a stream of integers, each integer on a separate line, sent by the client. integer_seq_server.py should print out all aumbers that are multiples of 13 or multiples of 31. The IntegerSeqclient.javs should generate a integers, as a sequence of digits, starting at I and going to a specified maximum. For example the first 4 integers would be sent as: IntegarscqClient.java should accept two command line arguments, the first specifies the host name of the server, the second specifies the port number of the server, and the third specifies the last integer. For example, the command: java IntegerSeoclient gartield.cs.mun.ca 8764 190 specifies that port 8764 should be used to connect to the integer seq_ server.py, that is running on garfield.cs.mun.ca. The I finished. ntegerSeqclient program should send integers from 1 to 100. A -1 should be sent to indicate the sequence is The integer_sea server.py should accept one command line argument that specifies the port of the Serversocket. A server listening on port 8764 is created with: python integr seqserver-py 8764 In addition, to printing the multiplies of 13 and 31 the server should count the multiplies. The couat should be seat back to the IntegerSeqClient program, when a -1 is received by integer see server.py. After sending the count, the server should close the connection, and wait for a new connection. After sending the integer sequence, Integerseqclient, should read the count, as a text line, sent by the integer_sea_server.py, print the count, and then terminate Test your client an d server program with the following commands python3 integer_seq server.py 8764 run this connand in one terminal window ava IntegerseoClient localhost 8764 100 use another terminal java IntegerSeuClient t localhost 8764 200 +in the different terminal Report the output of each program. You can base your solution on LineClient.jsva and line server.py

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 Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions