Computers and Technology, 07.07.2021 01:00, tiffanyrhoda
IN C++ PLEASE Define a function FilterStr() that takes a string parameter and returns "Good" if the character at index 4 in the string parameter is uppercase. Otherwise, the function returns "Bad".
Ex: FilterStr("sandwich") returns
Bad
Recall isupper() checks if the character passed is uppercase. Ex: isupper('A') returns a non-zero value. isupper('a') returns 0.
string's at() returns a character at the specified position in the string. Ex: myString. at(3)
#include
#include
#include
using namespace std;
/* Your code goes here */
int main() {
string input;
string output;
getline(cin, input);
output = FilterStr(input);
cout << output << endl;
return 0;
}
Answers: 3
Computers and Technology, 23.06.2019 04:00, ittmanny6138
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
IN C++ PLEASE Define a function FilterStr() that takes a string parameter and returns "Good" if the...
Mathematics, 05.06.2020 22:05
Mathematics, 05.06.2020 22:05