Question: In this assignment, you are going to write a client-server program using TCP in C++. The client sends requests to the server and the server

In this assignment, you are going to write a client-server program using TCP in C++. The client sends requests to the server and the server sends the reply back after processing the requests. The client can send the following requests to manage a simple student database on the server. You can randomly use a 6-digit numerical number as a student's ID. We assume a student's first and last names are less than 20 characters long. A student's information includes his/her ID, first and last names, and his/her score (0-100) for the network course. 1. add(ID, Fname, Lname, score): this request adds a new student's information into the database. 2. display(ID): this request sends the ID of a student to the server and the server returns the information of the student. 3. display(score): this request sends a score to the server and the server returns the information of all the students whose scores are above the sent score. 4. display_all: this request displays the information of all the students currently in the database. 5. delete(ID): this request deletes the student entry with that ID. 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!