ACTIVITY 6.5.3: Functions with loops. 345154.2174782.qx3zqy7 Jump to level1 Define a function FilterVal() that takes a string parameter and returns "Yes" if the length of the string parameter is...


ACTIVITY<br>6.5.3: Functions with loops.<br>345154.2174782.qx3zqy7<br>Jump to level1<br>Define a function FilterVal() that takes a string parameter and returns
2 #include 3 #include 4 using namespace std; 5 7 int main) { string input; string output; 8 10 getline(cin, input); output = FilterVal(input); cout < output="">< endl;="" 11="" 12="" 13="" 14="" 15="" return="" 0;="" 1="" "/="">
Extracted text: ACTIVITY 6.5.3: Functions with loops. 345154.2174782.qx3zqy7 Jump to level1 Define a function FilterVal() that takes a string parameter and returns "Yes" if the length of the string parameter is greater than 4. Otherwise, the function returns "No". Ex: FilterVal("SOCIETY") returns Yes Recall string's size() returns the number of characters in a string. Ex: myString.size() 1 #include 2 #include 3 #include 4 using namespace std; 5 7 int main) { string input; string output; 8 10 getline(cin, input); output = FilterVal(input); cout < output="">< endl;="" 11="" 12="" 13="" 14="" 15="" return="" 0;="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here