Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write two programs (using programming language of your choice) or two algorithms

ID: 3645616 • Letter: W

Question

Write two programs (using programming language of your choice) or two algorithms or two pseudo codes or two flow charts, where one of them acts as a simple client reading a line from its standard input (keyboard) and send it out to the server. The other program acts as a simple server and converts anything the client sent to uppercase and sends it back to the client. The client then should print the line on its standard output (monitor). (i) Please provide the client-server program pair for a TCP implementation. (ii) Moreover, discuss whether it would be different or not of it were a UDP implementation.

Explanation / Answer

2 down vote It's very difficult to get this right, and very, very easy to write an RNG which looks to produce random numbers but doesn't. If you are seriously interested in this, read Chapter 3 of Knuth's The Art of Computer Programming, otherwise use a library function.