Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It must be written in Python, please test the pode before answearing. DESCRIPTION: In this assignment, you will have a chance to try your hand

It must be written in Python, please test the pode before answearing.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

DESCRIPTION: In this assignment, you will have a chance to try your hand with the Python programming language. Your job will be to develop a small database server. Ordinarily, this would be a significant undertaking. However, with Python, this will be surprisingly straightforward and requires a relatively modest amount of code. Your DB system will work as follows: 1. You will construct a client/server application. In your case, only one client program will access the DB, so you do not have to worry about issues like concurrency or thread control It's just a one-to-one form of communication. Python provides a SocketServer class in its standard libraries. You can use this to get started, along with the sample code provided in the Python docs (you can use the 9999 port for the DB server). In addition to listening for client requests, the server program must first load the database and provide access to the data. The data base will be loaded from a simple, plain text disk file called data.txt. In your case, the database will hold customer records. A customer record will be a tuple with the following format 2. name, age, address, phone# To record this informatio n on disk, you will store one record per line, and separate each field with a bar symbol CT). A simple 3 record database might look like this John 43 123 Apple street|514 428-3452 Katyal 26149 Queen Mary Road1514 234-7654 Ahmadl91|1888 Pepper Lanel

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

More Books

Students also viewed these Databases questions

Question

Lo6 Identify several management development methods.

Answered: 1 week ago