choose one of the following options available with server and then deliver the requested object to client: Sum Multiply Division Bye  Server Program is first started.  Then the Client program is started.  Ask three questions from Server  Get the answer from client  Finally send the resutls. Execute the following steps: Step 1: Run the Java program of Server Step 2: Run the Java program of Client and Sample output of Client Window: Sample output 1(Client): Connected to server Message from Server: Select the option: Sum Multiply Division Bye Enter Reply Enter Reply the message to the server: 1 from Server: What is the sum of 2 + 3 ? the message to the server: 4 from Server:YourAnswernotcorrect Reply Enter Reply Reply Enter Reply and Wrong 1, bye from Server: What is the sum of 4 + 3 ? the message to the server: 7 from Server:YourAnswercorrect,Congrats from Server: What

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
QUESTION 1 1.  Develop a server program in Java that waits for clients to connect.  The server responds to the client to choose one of the following options available with server and then deliver the requested object to client: Sum Multiply Division Bye  Server Program is first started.  Then the Client program is started.  Ask three questions from Server  Get the answer from client  Finally send the resutls. Execute the following steps: Step 1: Run the Java program of Server Step 2: Run the Java program of Client and Sample output of Client Window: Sample output 1(Client): Connected to server Message from Server: Select the option: Sum Multiply Division Bye Enter Reply Enter Reply the message to the server: 1 from Server: What is the sum of 2 + 3 ? the message to the server: 4 from Server:YourAnswernotcorrect Reply Enter Reply Reply Enter Reply and Wrong 1, bye from Server: What is the sum of 4 + 3 ? the message to the server: 7 from Server:YourAnswercorrect,Congrats from Server: What is the sum of 10 + 11 ? the message to the server: 21 from Server:YourAnswercorrect,CongratsandTotalCorrect2 Sample output 2(Client): Connected to server Message from Server: Select theoption: Sum Multiply Division Bye Enter Reply Enter Reply the message to the server: 2 from Server: What is the product of 4 * 3 ? the message to the server: 11 from Server:YourAnswernotcorrect Reply Enter Reply Reply Enter Reply Wrong 2, bye from Server: What is the product of 10 * 3 ? the message to the server: 30 from Server:YourAnswercorrect,Correct from Server: What is the product of 5 * 3 ? the message to the server: 21 from Server:YourAnswernotcorrectandTotalCorrect1and Sample output 1(Server): Connected to client socket number 13 Message to Client : Select theoption: Sum Multiply Division Bye Client sent message: 1 Message to Client Server: What is the sum of 2 + 3 ? Answer from Client : 4 correct count : 0 Message to Client Server: What is the sum of 4 + 3 ? Answer from Client : 7 correct count : 1 Message to Client Server: What is the sum of 10 + 11 ? Answer from Client : 21 correct count : 2 Reply to client :YourAnswercorrect,CongratsandTotalCorrect2 and Wrong 1, bye Task: 1. Write the Java socket program for the Server. (class name: Server_Your ID Number) Task: 2. Write the Java socket program for the Client. (class name: Client_Your ID Number) Task: 3. Execute the program and show the output screenshot.
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY