Ask the user for a string with some uppercase letters and some lowercase letters. Write a function called ChangeCase that prints a new string in which the uppercase letters are changed to lowercase and lowercase to uppercase. in c++
#include <iostream>
#include <string>
using namespace std;
void ChangeCase(string s) {
char ch;
for (int i = 0; i < s.size(); ++i) {
ch = s[i];
if (ch >= 'a' && ch <= 'z') {
ch -= 32;
} else if (ch >= 'A' && ch <= 'Z') {
ch += 32;
}
cout << ch;
}
cout << endl;
}
int main() {
string s;
cout << "Enter a string:" << endl;
getline(cin, s);
ChangeCase(s);
return 0;
}

Ask the user for a string with some uppercase letters and some lowercase letters. Write a...