Question

Modify secondVerse to play The Name Game (a.k.a. The Banana Song, see Wikipedia.org), by replacing(Name) with userName but without the first letter. Ex: if userName Katie, the program prints Banana fana fo-fatie! #include くiostream» 2 #include <string> 3 using namespace std; 4 5 int main) 6 string secondVerseBanana-fana fo-f(Name)!; 7 string userName-Katie; 9 userName.erase (userName.begin()); I/ Removes first char from userName 10 11 secondVerse=secondVerse.substr(e, secondVerse.length()-7); 12 13 secondVerseuserName + 14 15 16 17 18 19 20 cout<< secondVerse << endl; return 0; Run Testing Katie Your output Banana-fana fo-fatie! Testing Walter Your output Banana-fana fo-falter! Testing Katie and ending with III instead of I Expected output Banana-fana fo-fatie!!! Banana-rana -a-le Your output Banana-fana fo-f (Natie!Modify secondVerse to play "The Name Game" (a.k.a. "The Banana Song", see Wikipedia.org), by replacing "(Name)" with userName but without the first letter. Ex: if userName = "Katie", the program prints: Banana-fana fo-fatie!

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Modify secondVerse to play "The Name Game" (a.k.a. "The Banana Song", see Wikipedia.org), by replacing "(Name)"...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT