Question: C++ Write a function CountLtoz that takes a string as an input parameter argument and counts the number of L, M, N,... Z characters in

C++
Write a function CountLtoz that takes a string as an input parameter argument and counts the number of L, M, N,... Z characters in it. The function returns an integer value for the number of times those 16 uppercase letters appear in the input string Your function should be named CountLtoz Your function should take one string parameter . Your function should return the number of L, M, N, ... Z characters as an integer Your function should not print/output anything Edge Cases If the string is empty, return-1 If there are no L, M, N, ... Z characters in the string, return -2 Examples string "MUENZINGER" return 6 string "Muenzinger" return 1 string "muenzinger" return -2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
