Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 -2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started