Question: This is all in C++ CAUsersiphermander56Downloads PE03-SAMPLEPEO3-SAMPLEp2cpp-Se File Edit Search View Tools Options Language Buffers Help 1 p2cpp 2 p1.cpp 1Finclude 2 #include 3 using

This is all in C++  This is all in C++ CAUsersiphermander56Downloads PE03-SAMPLEPEO3-SAMPLEp2cpp-Se File Edit Search View
Tools Options Language Buffers Help 1 p2cpp 2 p1.cpp 1Finclude 2 #include

CAUsersiphermander56Downloads PE03-SAMPLEPEO3-SAMPLEp2cpp-Se File Edit Search View Tools Options Language Buffers Help 1 p2cpp 2 p1.cpp 1Finclude 2 #include 3 using namespace stdj sfile p2.cpp 7 CS 150 PE03: INTERMEDIATE STRINGS/LOOPS 9Given an input string, count the number of words ending 10in y or 'z'-so the 'y in "heavy" and the 'z' in "fez" 11count, but not the 'y' in "yelLow". Make sure that your 12comparison is not case sensitive. We'LL say that a y 13or z is at the end of a word if there is not an alphabetic 15 14Letter immediately following it. 16Do not use any string functions except for substr), 17at(), and size(). You may use isalpha from cctype as well. 18 19 This is the most difficult problem in the set, 20 so do not start with this one. 21 22Here are some other examples: 23 24* 25* 26 27 int endzy(const string& str) 28 29 30 31 32 -"fez day"2 "day fez" > 2 - "day fyyyz"2 int result; I/ Your code goes here return result 34 25 + Compiles and runs + Correctness x decreasina"Chocolate 4: EATI

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!