Question: In C++: please write this code, it is for an introductory class put towards the end (12 points) Write two functions. The first function, Countcapitals,
(12 points) Write two functions. The first function, Countcapitals, should have one parameter that is a vector of strings, and should return an integer. The function should count the number of strings that begin with a capital letter. Remember, the ASCI value of "A is 65; do not use a library function to determine whether a letter is a capital. The second function, capitalizestrings, should have one parameter that is a vector of strings. and should capitalize each string in the vector. To capitalize means to convert a lower-case letter to an upper-case letter. The ASCII code for 'a' is 97; do not use a library function. Using those two functions, that outputs the original number of strings that are not capitalized, then capitalizes the strings, and then outputs the final number of strings that are not capitalized (which should now be zero). Your maino hould define the vector of strings but should not populate the vector Gust put a comment "Vector populated here n. instead proceeding to call your functions and output the appropriate values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
