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,

In C++: please write this code, it is for an introductory class put towards the end  In C++: please write this code, it is for an introductory

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!