Question: upperCaseChars - Given a string, return the number of uppercase characters. Use isupper from the cctype library. lowerCaseChars - Given a string, return the number
upperCaseChars - Given a string, return the number of uppercase characters. Use isupper from the cctype library. lowerCaseChars - Given a string, return the number of lowercase characters. Use islower from the cctype library.. numPunct - Given a string, return the number of punctuation characters. Use ispunct from the cctype library. numWords - Given a string, return the number of words it contains. A word is defined to be a sequence of alphabetic (isalpha) characters with non-alphabetic characters on each side. If alphabetic characters start or end the string, they are considered a word. characterCounts - Given a string, return a vector of ints of length 26 containing the number of times each letter was seen. Index 0 corresponds to a, 1 to b, etc Treat upper-case letters lower-case.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
