Question
Can someone help me with this c++ program? I almost have it down but the output of what I have is just a little bit
Can someone help me with this c++ program? I almost have it down but the output of what I have is just a little bit off.
-what the output needs to look like-
$ ./scramble.out Welcome to Reverse-the-words! Enter your sentence, word or phrase: Work please Your phrase with all of the words reversed is: kroW esaelp Would you like to reverse words in another phrase? [Y}es or [N]o Y Welcome to Reverse-the-words! (etc.)
my current output-
$ ./scramble.out Welcome to Reverse-the-words! Enter your sentence, word or phrase: please work Your phrase with all of the words reversed is: esaelp Your phrase with all of the words reversed is: esaelp krow Would you like to reverse words in another phrase? [Y}es or [N]o N $ ./scramble.out Welcome to Reverse-the-words! Enter your sentence, word or phrase: Work please Your phrase with all of the words reversed is: kroW Your phrase with all of the words reversed is: kroW esaelp Would you like to reverse words in another phrase? [Y}es or [N]o Y Would you like to reverse words in another phrase? [Y}es or [N]o N
-the code I have so far-
#include
44 moreprocessing = true; 45 else 46 moreprocessing = false; 47 } 48 while ( answer == 'y' || answer == 'Y'); 49 } 50 51 return 0; 52 }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started