Question
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.
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".
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.1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started