#include <string> #include <cctype> using namespace std; //These functions expla
ID: 3619143 • Letter: #
Question
#include <string>
#include <cctype>
using namespace std;
//These functions explained below
void spaces();
void introduction();
int main()
{
string sentence;
char response;
do
{
getline(cin, sentence);
cout << endl;
for(inti = 0; i < sentence.length(); i++)
{
if(isspace(sentence[i]))
{
i++;
while(isdigit(sentence[i]))
{
sentence[i] = 'X';
i++;
}
}
}
cout << sentence << endl <<endl;
//Asks the user he would like to go again anything other than (Y ory) the program ends
cout << "Would you like to go again (Yor y): ";
cin >> response;
cout << endl;
cin.ignore();
}while(response == 'Y' || response== 'y');
return 0;
Explanation / Answer
please rate - thanks #include #include #include using namespace std; // These functions explained below void spaces(); void introduction(); int main() { string sentence; char response; do { getline(cin, sentence); coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.