Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions