Question
Objective: Create a count server that can do the following: converts single digit integers of a given sentence to number words, counts the number of
Objective: Create a count server that can do the following: converts single digit integers of a given sentence to number words, counts the number of uppercase and lowercase alphabets, and finally counts the number of special characters in an input sentence. Requirements: 1. Create a C-based client-server architecture using TCP sockets 2. The count server should run on cell02-cse.eng.unt.edu machine and the client can run on any cell server machine 3. The count server should be able to accept and service at least one clients requests 4. The count server should be able to convert single digit integers in an input sentence to number words and print the converted sentence on the client side 5. The count server should be able to count the number of uppercase alphabets in an input sentence and print the number of uppercase alphabets on the client side 6. The count server should be able to count the number of lowercase alphabets in an input sentence and print the number of lowercase alphabets on the client side 7. The count server should be able to count the number of special characters (@, #, $, %, ^, and &) in an input sentence and print the number of special characters on the client side 8. The count server and the client program should exit or end execution when a quit expression is given as an input from the client side 9. Do not use any ready-made or pre-defined functions to directly count alphabets or special characters or for conversion. You can use pre-defined functions from C string library 10. The user will input the sentence in correct format without errors and the maximum size of the sentence is 255 characters. Do not use any Linux shell commands or code from the internet.
Procedure: 1. Create a C-based server that can accept at least one clients request using TCP sockets 2. Make sure the format to start the count server is as follows ./ctserver
Output: The cost for three apples is $four!
Uppercase alphabets: 1 Lowercase alphabets: 17 Special Characters: 1 Input: Average US inflation will be 6% this year! Output: Average US inflation will be six% this year! Uppercase alphabets: 3 Lowercase alphabets: 29 Special Characters: 1 Input: quit cya!
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