Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

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.

Instructions 1. Do this assignment individually.

2. This assignment has 100 points.

3. Submit online using webcampus.

Problem Statement

Step by Step Solution

3.52 Rating (145 Votes )

There are 3 Steps involved in it

Step: 1

No we cannot provide Python TCPClient and TCPServer coding in an actual way as it is beyond the scope of this question We can provide you with an over... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students explore these related Programming questions