Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA - Sockets, GUI (Netbeans) 1. NameLookupClient.java This program will prompt the user for a student number (see below). The client will send this student

JAVA - Sockets, GUI (Netbeans)

1. NameLookupClient.java This program will prompt the user for a student number (see below). The client will send this student number to the NameLookupServer and then display what the server sends back.

The Client has a GUI and the client stays in a loop prompting the user for input and sending messages until the user shuts down the client.

image text in transcribed

2. NameLookupServer.java This program will listen on a socket for a client to connect and then send a message. The message will consist of a Student ID number (see below). The server will look up this number and then return the Student name to the client.

The server will display its conversation with the client (messages received and sent) in a GUI. If the student ID number is not found, the server will return a student name of "Not Found".

image text in transcribed

3. Hint: One way of designing the server would be to use parallel arrays.

Student data. The student data that the server should house is the following:

7000123 John Doe

7000453 Mary Smith

7000677 G. Washington

7000799 B. Franklin

7000388 B. Ford

! Client Enter a Student ID number: 5.1

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_2

Step: 3

blur-text-image_3

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago