Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions