SlideShare a Scribd company logo
1 of 2
Download to read offline
CLIENT APPLICATION
Create a standalone, interactive, and fully commented client application that interacts with a user
and serves as an interface to a server application and performs these tasks: Input strings should
be made up of one or more words (groups of alphanumeric characters)
1. Open and process a configuration file (see below for details)
2. Open a log file using parameters (filename, logging level, and file mode) obtained from the
configuration file and write all major activity to the log file
3. Connect to the server application over the network using the IP address and port number from
the configuration file
a. Upon your connection being successful, write an informational Connected to message to the
screen
4. Loop while prompting the user of the application for input strings.
a. If an empty string was entered, print an appropriate error reporting that no command was
entered
5. Process each input string as follows:
a. Write the original input string to the log file
b. Parse the input string by tokenizing the string, delimiting on whitespace (blanks)
c. Convert (translate) only the first token to all uppercase characters. The first token will be the
command in the server request
d. Concatenate the remainder of the tokens into a string, each separated by whitespace (blanks).
This string will be the parameter in the server request (Note: the parameter string may be empty)
6. Create a server request from the command and the parameter as a JSON-formatted string (see
details below)
7. Send the server request to the server application and wait for a server response a. The server
response will consist of a response element and a parameter element (see Server Application
requirements below)
8. Read the server response and:
a. Write the entire received server response to the log file
b. Print the parameter element of the server response received to the screen
c. If the response element in the server response is QUITTING: i. Print an appropriate Shutting
down message to the screen and log file ii. Exit the application
Client Application Details
1. Input strings should be made up of one or more words (groups of alphanumeric characters)
2.In the client configuration file, If the sections below do not exist, add them; if they do exist,
alter them as follows:
[project200]
# server IP address serverHost = 127.0.0.1
# server listening port (> 1024) serverPort = 7721 [logging] # log file filename
logFile = -project200-client.log # logging level logLevel = INFO # log file mode (w = write, a =
append) logFileMode = a
4. From the configuration file, project200 section, read the serverHost and serverPort
configuration fields and store their parameter values.
5. From the configuration file, logging section, read the logFile, logLevel, and logFileMode
configuration fields and store their parameter values
6. When creating a socket object, use the AF_INET address family (so host can be expressed as a
hostname) and the SOCK_STREAM socket type (TCP socket).
7. When connecting to the server, the server address is passed as a tuple containing the
hostname and port number. Note: This is the 3-way handshake since were using TCP.
8. The server request format should be a JSON-formatted string in this form: { command : ,
parameter : }
can i get help using python

More Related Content

Similar to CLIENT APPLICATION Create a standalone, interactive, and fully com.pdf

Cobol training class-1
Cobol training class-1Cobol training class-1
Cobol training class-1
Anil Polsani
 
Cobol training class-1
Cobol training class-1Cobol training class-1
Cobol training class-1
Anil Polsani
 
Datel smdr-ipo8
Datel smdr-ipo8Datel smdr-ipo8
Datel smdr-ipo8
salimgunal
 
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdfProject 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
abhaykush25
 
Contents1Scenario. 12Requirements23Design an.docx
Contents1Scenario. 12Requirements23Design an.docxContents1Scenario. 12Requirements23Design an.docx
Contents1Scenario. 12Requirements23Design an.docx
mercylittle80626
 
IntroductionA powerful tool for network troubleshooting but also.docx
IntroductionA powerful tool for network troubleshooting but also.docxIntroductionA powerful tool for network troubleshooting but also.docx
IntroductionA powerful tool for network troubleshooting but also.docx
mariuse18nolet
 
Complete reference to_abap_basics
Complete reference to_abap_basicsComplete reference to_abap_basics
Complete reference to_abap_basics
Abhishek Dixit
 
In C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdfIn C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdf
ankitsrivastava681882
 

Similar to CLIENT APPLICATION Create a standalone, interactive, and fully com.pdf (20)

CRM Connector for Avaya Aura
CRM Connector for Avaya AuraCRM Connector for Avaya Aura
CRM Connector for Avaya Aura
 
Cobol training class-1
Cobol training class-1Cobol training class-1
Cobol training class-1
 
Cobol training class-1
Cobol training class-1Cobol training class-1
Cobol training class-1
 
InduSoft Web Studio Driver Overview – SITIA and ABCIP
InduSoft Web Studio Driver Overview – SITIA and ABCIPInduSoft Web Studio Driver Overview – SITIA and ABCIP
InduSoft Web Studio Driver Overview – SITIA and ABCIP
 
Datel smdr-ipo8
Datel smdr-ipo8Datel smdr-ipo8
Datel smdr-ipo8
 
FMS Administration Seminar
FMS Administration SeminarFMS Administration Seminar
FMS Administration Seminar
 
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdfProject 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
 
Contents1Scenario. 12Requirements23Design an.docx
Contents1Scenario. 12Requirements23Design an.docxContents1Scenario. 12Requirements23Design an.docx
Contents1Scenario. 12Requirements23Design an.docx
 
IntroductionA powerful tool for network troubleshooting but also.docx
IntroductionA powerful tool for network troubleshooting but also.docxIntroductionA powerful tool for network troubleshooting but also.docx
IntroductionA powerful tool for network troubleshooting but also.docx
 
ArcSight Model Import Connector for RepSM 7.1.7.7607.0 Configuration guide
ArcSight Model Import Connector for RepSM 7.1.7.7607.0 Configuration guideArcSight Model Import Connector for RepSM 7.1.7.7607.0 Configuration guide
ArcSight Model Import Connector for RepSM 7.1.7.7607.0 Configuration guide
 
AppDynamics Administration - AppSphere16
AppDynamics Administration - AppSphere16AppDynamics Administration - AppSphere16
AppDynamics Administration - AppSphere16
 
Lotus 190-980 Domino 8.5 System Administration Fundamentals
Lotus 190-980 Domino 8.5 System Administration FundamentalsLotus 190-980 Domino 8.5 System Administration Fundamentals
Lotus 190-980 Domino 8.5 System Administration Fundamentals
 
Accel_Series_2023Autumn_En.pptx
Accel_Series_2023Autumn_En.pptxAccel_Series_2023Autumn_En.pptx
Accel_Series_2023Autumn_En.pptx
 
POS/409 ENTIRE CLASS UOP TUTORIALS
POS/409 ENTIRE CLASS UOP TUTORIALSPOS/409 ENTIRE CLASS UOP TUTORIALS
POS/409 ENTIRE CLASS UOP TUTORIALS
 
06 comunicação mestre mestre
06 comunicação mestre mestre06 comunicação mestre mestre
06 comunicação mestre mestre
 
Design an Implementation of A Messaging and Resource Sharing Software
Design an Implementation of A Messaging and Resource Sharing SoftwareDesign an Implementation of A Messaging and Resource Sharing Software
Design an Implementation of A Messaging and Resource Sharing Software
 
Oracle Web ADI Implementation Steps
Oracle Web ADI Implementation StepsOracle Web ADI Implementation Steps
Oracle Web ADI Implementation Steps
 
Complete reference to_abap_basics
Complete reference to_abap_basicsComplete reference to_abap_basics
Complete reference to_abap_basics
 
Srs
SrsSrs
Srs
 
In C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdfIn C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdf
 

More from rahulfancycorner21

Clara fears she may have made a mistake in how she handled the expen.pdf
Clara fears she may have made a mistake in how she handled the expen.pdfClara fears she may have made a mistake in how she handled the expen.pdf
Clara fears she may have made a mistake in how she handled the expen.pdf
rahulfancycorner21
 
Chapter 11 Conrols for Information Security11.4 Which preventive, .pdf
Chapter 11 Conrols for Information Security11.4 Which preventive, .pdfChapter 11 Conrols for Information Security11.4 Which preventive, .pdf
Chapter 11 Conrols for Information Security11.4 Which preventive, .pdf
rahulfancycorner21
 
Case 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdf
Case 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdfCase 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdf
Case 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdf
rahulfancycorner21
 
CASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdf
CASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdfCASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdf
CASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdf
rahulfancycorner21
 
Case 1 Why shareholders wealth maximization value maximization is c.pdf
Case 1 Why shareholders wealth maximization value maximization is c.pdfCase 1 Why shareholders wealth maximization value maximization is c.pdf
Case 1 Why shareholders wealth maximization value maximization is c.pdf
rahulfancycorner21
 
Capstone Project E-Commerce Application with Firebase Firestore Obj.pdf
Capstone Project E-Commerce Application with Firebase Firestore Obj.pdfCapstone Project E-Commerce Application with Firebase Firestore Obj.pdf
Capstone Project E-Commerce Application with Firebase Firestore Obj.pdf
rahulfancycorner21
 
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdfC++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdf
rahulfancycorner21
 
Can we please draw this BPM process roughly on paper and post a pict.pdf
Can we please draw this BPM process roughly on paper and post a pict.pdfCan we please draw this BPM process roughly on paper and post a pict.pdf
Can we please draw this BPM process roughly on paper and post a pict.pdf
rahulfancycorner21
 
Can we draw this BPM on paper showing shapes arrows and connectors .pdf
Can we draw this BPM on paper showing shapes arrows and connectors .pdfCan we draw this BPM on paper showing shapes arrows and connectors .pdf
Can we draw this BPM on paper showing shapes arrows and connectors .pdf
rahulfancycorner21
 
Can u give a CORAS ASSEST DIAGRAM for the following case study - The.pdf
Can u give a CORAS ASSEST DIAGRAM for the following case study - The.pdfCan u give a CORAS ASSEST DIAGRAM for the following case study - The.pdf
Can u give a CORAS ASSEST DIAGRAM for the following case study - The.pdf
rahulfancycorner21
 
C++ code, please help! Troubleshooting and cannot for the life of me.pdf
C++ code, please help! Troubleshooting and cannot for the life of me.pdfC++ code, please help! Troubleshooting and cannot for the life of me.pdf
C++ code, please help! Troubleshooting and cannot for the life of me.pdf
rahulfancycorner21
 

More from rahulfancycorner21 (19)

Consider a world in which there are two nations � the US and China, ea.pdf
Consider a world in which there are two nations � the US and China, ea.pdfConsider a world in which there are two nations � the US and China, ea.pdf
Consider a world in which there are two nations � the US and China, ea.pdf
 
Configure iptables to ACCEPT packets by defaultConfigure iptables .pdf
Configure iptables to ACCEPT packets by defaultConfigure iptables .pdfConfigure iptables to ACCEPT packets by defaultConfigure iptables .pdf
Configure iptables to ACCEPT packets by defaultConfigure iptables .pdf
 
CIS611 SS Chung Lab Assignment 2 Implementing Big Data Processing Pipe.pdf
CIS611 SS Chung Lab Assignment 2 Implementing Big Data Processing Pipe.pdfCIS611 SS Chung Lab Assignment 2 Implementing Big Data Processing Pipe.pdf
CIS611 SS Chung Lab Assignment 2 Implementing Big Data Processing Pipe.pdf
 
Case Study Makati CityMakati City is one of the sixteen cit.pdf
Case Study Makati CityMakati City is one of the sixteen cit.pdfCase Study Makati CityMakati City is one of the sixteen cit.pdf
Case Study Makati CityMakati City is one of the sixteen cit.pdf
 
Clara fears she may have made a mistake in how she handled the expen.pdf
Clara fears she may have made a mistake in how she handled the expen.pdfClara fears she may have made a mistake in how she handled the expen.pdf
Clara fears she may have made a mistake in how she handled the expen.pdf
 
Chapter 11 Conrols for Information Security11.4 Which preventive, .pdf
Chapter 11 Conrols for Information Security11.4 Which preventive, .pdfChapter 11 Conrols for Information Security11.4 Which preventive, .pdf
Chapter 11 Conrols for Information Security11.4 Which preventive, .pdf
 
Case 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdf
Case 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdfCase 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdf
Case 12�1Carson ManorIn late November, Ms. Elaine Taylor, direct.pdf
 
CASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdf
CASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdfCASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdf
CASE STUDY 1 Alternative Water Supply Gordon Rivers, the city manage.pdf
 
can i have the Answers of the above questions 1. Compare and contr.pdf
can i have the Answers of the above questions 1. Compare and contr.pdfcan i have the Answers of the above questions 1. Compare and contr.pdf
can i have the Answers of the above questions 1. Compare and contr.pdf
 
Case 1 Why shareholders wealth maximization value maximization is c.pdf
Case 1 Why shareholders wealth maximization value maximization is c.pdfCase 1 Why shareholders wealth maximization value maximization is c.pdf
Case 1 Why shareholders wealth maximization value maximization is c.pdf
 
Capstone Project E-Commerce Application with Firebase Firestore Obj.pdf
Capstone Project E-Commerce Application with Firebase Firestore Obj.pdfCapstone Project E-Commerce Application with Firebase Firestore Obj.pdf
Capstone Project E-Commerce Application with Firebase Firestore Obj.pdf
 
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdfC++ code, please help! RESPOND W COMPLETED CODE PLEASE,  am using V.pdf
C++ code, please help! RESPOND W COMPLETED CODE PLEASE, am using V.pdf
 
Can you draw a database design Entity relationship ERand the rela.pdf
Can you draw a database design Entity relationship ERand the rela.pdfCan you draw a database design Entity relationship ERand the rela.pdf
Can you draw a database design Entity relationship ERand the rela.pdf
 
Business PlanA business plan is any simple plan, not only limited .pdf
Business PlanA business plan is any simple plan, not only limited .pdfBusiness PlanA business plan is any simple plan, not only limited .pdf
Business PlanA business plan is any simple plan, not only limited .pdf
 
Can we please draw this BPM process roughly on paper and post a pict.pdf
Can we please draw this BPM process roughly on paper and post a pict.pdfCan we please draw this BPM process roughly on paper and post a pict.pdf
Can we please draw this BPM process roughly on paper and post a pict.pdf
 
Can we draw this BPM on paper showing shapes arrows and connectors .pdf
Can we draw this BPM on paper showing shapes arrows and connectors .pdfCan we draw this BPM on paper showing shapes arrows and connectors .pdf
Can we draw this BPM on paper showing shapes arrows and connectors .pdf
 
Can u give a CORAS ASSEST DIAGRAM for the following case study - The.pdf
Can u give a CORAS ASSEST DIAGRAM for the following case study - The.pdfCan u give a CORAS ASSEST DIAGRAM for the following case study - The.pdf
Can u give a CORAS ASSEST DIAGRAM for the following case study - The.pdf
 
C++ code, please help! Troubleshooting and cannot for the life of me.pdf
C++ code, please help! Troubleshooting and cannot for the life of me.pdfC++ code, please help! Troubleshooting and cannot for the life of me.pdf
C++ code, please help! Troubleshooting and cannot for the life of me.pdf
 
BUsiness law9.3 Implied-in-Fact Contract For six years, Lee Marvin.pdf
BUsiness law9.3 Implied-in-Fact Contract For six years, Lee Marvin.pdfBUsiness law9.3 Implied-in-Fact Contract For six years, Lee Marvin.pdf
BUsiness law9.3 Implied-in-Fact Contract For six years, Lee Marvin.pdf
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

CLIENT APPLICATION Create a standalone, interactive, and fully com.pdf

  • 1. CLIENT APPLICATION Create a standalone, interactive, and fully commented client application that interacts with a user and serves as an interface to a server application and performs these tasks: Input strings should be made up of one or more words (groups of alphanumeric characters) 1. Open and process a configuration file (see below for details) 2. Open a log file using parameters (filename, logging level, and file mode) obtained from the configuration file and write all major activity to the log file 3. Connect to the server application over the network using the IP address and port number from the configuration file a. Upon your connection being successful, write an informational Connected to message to the screen 4. Loop while prompting the user of the application for input strings. a. If an empty string was entered, print an appropriate error reporting that no command was entered 5. Process each input string as follows: a. Write the original input string to the log file b. Parse the input string by tokenizing the string, delimiting on whitespace (blanks) c. Convert (translate) only the first token to all uppercase characters. The first token will be the command in the server request d. Concatenate the remainder of the tokens into a string, each separated by whitespace (blanks). This string will be the parameter in the server request (Note: the parameter string may be empty) 6. Create a server request from the command and the parameter as a JSON-formatted string (see details below) 7. Send the server request to the server application and wait for a server response a. The server response will consist of a response element and a parameter element (see Server Application requirements below) 8. Read the server response and: a. Write the entire received server response to the log file b. Print the parameter element of the server response received to the screen c. If the response element in the server response is QUITTING: i. Print an appropriate Shutting down message to the screen and log file ii. Exit the application Client Application Details 1. Input strings should be made up of one or more words (groups of alphanumeric characters) 2.In the client configuration file, If the sections below do not exist, add them; if they do exist,
  • 2. alter them as follows: [project200] # server IP address serverHost = 127.0.0.1 # server listening port (> 1024) serverPort = 7721 [logging] # log file filename logFile = -project200-client.log # logging level logLevel = INFO # log file mode (w = write, a = append) logFileMode = a 4. From the configuration file, project200 section, read the serverHost and serverPort configuration fields and store their parameter values. 5. From the configuration file, logging section, read the logFile, logLevel, and logFileMode configuration fields and store their parameter values 6. When creating a socket object, use the AF_INET address family (so host can be expressed as a hostname) and the SOCK_STREAM socket type (TCP socket). 7. When connecting to the server, the server address is passed as a tuple containing the hostname and port number. Note: This is the 3-way handshake since were using TCP. 8. The server request format should be a JSON-formatted string in this form: { command : , parameter : } can i get help using python