Question: COMP-311 Computer Networks TCS Programming Assignment 20 Marks Write a client/server application using Python. a) The client inputs from user 3 things, Unit to convert

COMP-311 Computer Networks

TCS Programming Assignment 20 Marks

Write a client/server application using Python. a) The client inputs from user 3 things, Unit to convert from, Unit to convert into, and the value to

be converted, and sends it to the server through TCP socket connection. (2 Marks)

b) Convert From Units are: (fl. oz, gal, oz, lb, in, ft, mi)

Convert to Units are: (ml, l, g, kg, mm, cm, m, km)

Convert From?gal

Convert to?ml

Value? 2.5

And send the values to the server.

The server then responds with the conversion and sends the output to client and the client then displays it as follows.

2.5 gal = 9463.5 ml (15 Marks) c) The client then displays the result to the user. And asks users if he wants to perform another Conversion. If Yes, repeat all steps else just terminate. (3 Marks)

d) You must provide a command-line interactive interface. e) Code should be well documented.

Instructions: Compile your programs (both client and server) and make sure they are working. Your code should be well commented and indented. Create a Readme file (text file) and write how to compile and execute your code. Please create a zip archive of your assignment folder (code, header files if any and Readme file) and upload the zip file.

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!