Question: /** * Problem 2: Intermediate Strings & Loops * * Given an input string, count the number of words ending in 'y' or 'z' -50


/** * Problem 2: Intermediate Strings & Loops * * Given an input string, count the number of words ending in 'y' or 'z' -50 the 'y' in "heavy" and the 'z' in "fez" count, but not the 'y' in "yellow". Make sure that your comparison is not case sensitive. We'll say that a y or z is at the end of a word if there is not an alphabetic letter immediately following it. * * Do not use any string functions except for substr(), at(), and size(), and isalpha() from
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
