subject

Modify songVerse to play "The Name Game" (see OxfordDictionaries. com), by replacing "(Name)" with userName but without the first letter. Ex: If userName = "Katie" and songVerse = "Banana-fana fo-f(Name)!", the program prints:Banana-fana fo-fatie!Ex: If userName = "Katie" and songVerse = "Fee fi mo-m(Name)", the program prints:Fee fi mo-matieNote: You may assume songVerse will always contain the substring "(Name)"#include #include using namespace std;int main() {string userName;string songVerse;getline(cin, userName);userName = userName. substr(1, userName. size() - 1); // Remove first charactergetline(cin, songVerse);// Modify songVerse to replace (Name) with userName without first character/* Your solution goes here */cout << songVerse << endl;return 0;}

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, najerajulio
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
image
Computers and Technology, 22.06.2019 16:30, jngonzo1226
Which of the following statements best describes it careers?
Answers: 2
image
Computers and Technology, 22.06.2019 17:50, ImBADatmath8743
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, MegRasmussen31
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
You know the right answer?
Modify songVerse to play "The Name Game" (see OxfordDictionaries. com), by replacing "(Name)" with u...

Questions in other subjects:

Konu
English, 14.04.2021 18:20