Write shout(s): make every letter in s a capital and add ! at the end. Anything that is not a letter stays.
shout("hi")→'HI!'shout("")→'!'string shout(string s)#include <string>
#include <cctype>
using namespace std;
string shout(string s) {
for (char &ch : s) {
// your code here: make ch a capital
}
return s + "!";
}
Run tries the examples. When they look right, Submit.