Question: Write a function (C++? Write a function countAlphaChars to count the number of alphabetic characters are in a string. You will receive an input parameter
Write a function countAlphaChars to count the number of alphabetic characters are in a string. You will receive an input parameter of type string called str and you should return an integer value for the number of alphabetic characters in the string. An alphabetic character is a lowercase or uppercase character present in the alphabet: a-z and A-Z. For your reference, here is a function countNumericChars that counts the number of numeric (0-9) characters in a string. int countNumericChars(string str)f int i = 0; int numericCharacters = 0; while (i = .0' && str[1]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
