Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

from socket import * serverName ='SweetPepper' serverPort = 9999 clientSocket = socket(AF_INET, SOCK_STREAM) clientSocket.connect((serverName,serverPort)) sentence = raw_input('Input a message:') choice = raw_input('Please choose command: Enter

from socket import * serverName ='SweetPepper' serverPort = 9999 clientSocket = socket(AF_INET, SOCK_STREAM) clientSocket.connect((serverName,serverPort)) sentence = raw_input('Input a message:') choice = raw_input('Please choose command: Enter 1 to capitalize the first letter of every word' 'Enter 2 to capitalize the entire message' 'Enter 3 t turn the whole message into lower case' '[1-3]: ') clientSocket.send(sentence) clientSocket.send(choice) modifiedSentence = clientSocket.recv(1024) print ('From Server:', modifiedSentence) clientSocket.close() # run TCPserver.py first and then # open shell for TCPclient.py 

This is a program is python. The program name is TCP Client. i just need to change it up. please edit it or put comments in it on whatever you feel like doing in it. but just change it up and make sure it runs and let me know which pyhotn terminal(3.2 or 2.0) did you use.

Please do this ASAP, I need it in couple of hours. Thank you in advance and I promise to give you a thumbs up!!!

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

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago