Question: Instructions 1. Do this assignment individually. 2. This assignment has 100 points. 3. Submit online using webcampus. Problem Statement The goal of this homework is

Instructions 1. Do this assignment individually.

2. This assignment has 100 points.

3. Submit online using webcampus.

Problem Statement

The goal of this homework is to create your own telephone directory app (i.e., contacts app) in which names and phone numbers are stored in a server, and may be retrieved/added/updated/deleted from a client by making requests. Specifically, a client can make the following types of requests:

1. ADD Santa Claus 1-800-LOTS-FUN which adds an entry in the server, and returns ENTRY ADDED to the client. If a phone number for Santa Claus had already been stored, it will get overwritten by this new number.

2. GET Santa Claus which retrieves the phone number if it has been stored earlier, in which case the server will return the phone number, e.g., 1-800-LOTS-FUN. If a phone number for Santa Claus is not found in the server, it will return NOT FOUND.

3. DELETE Santa Claus which will delete the phone number of Santa Claus if present, and return ENTRY DELETED. If an entry for Santa Claus was not already present, the server will return NOT FOUND.

A sample client server interaction will look something like the following (the odd numbered lines are requests, and the even numbered lines are responses)

ADD Santa Claus 1-800-LOTS-FUN

ENTRY ADDED

GET Santa Claus

1-800-LOTS-FUN

ADD Santa Claus 1-800-NEW-ADDR

ENTRY ADDED

GET Santa Claus

1-800-NEW-ADDR

DELETE Santa Claus

ENTRY DELETED

GET Santa Claus

NOT FOUND

DELETE Santa Claus

NOT FOUND

Implement both the TCPClient and the TCPServer for the above application.

Can I have both Python TCPClient and the TCPServer coding in an actual way as we write in a python rather than in a paragraph because it is really hard to understand? As well as can I have a Contact number and there contact name different from the output which I attached on the top.

Thanks

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!