Question: Develop a set of functions to analyze tweeter data. Specifically, write a program to prompt the user to enter a tweeter string. The program should
Develop a set of functions to analyze tweeter data. Specifically, write a program to prompt the user to enter a tweeter string. The program should develop a set of functions for the following string operations:
Word counter: count the number of words in the string and display it For instance, for an input of I will complete MSDA in one year. the program should display words. points
Average number of characters: calculate average number of characters in each word. For instance, this above string has characters excluding white spaces and words. The average is points
Upper case letters: count upper case letters. They are upper case letters in the above string. points
Lower case letters: count lower case letters. They are lower case letters in the above string. points
Reverse the string: write a function named reverse which should take a string and return the reversed string. points
String Stats: The program should count and display the number of alphabets a to z and A to Z points number of digits to points and number of special characters such as # $ @ points For this, write a function.
Use the following two tweet as test cases:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
