Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started