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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Which of the statements below is true? the formatting, standard, and drawing commands are unavailable. the formatting, standard, and drawing commands have been used. the formatting, standard, and drawing toolbars are displayed. the formatting, standard, and drawing toolbars are hidden.
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
One subtask in the game is to roll the dice. explain why is roll the dice an abstraction.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
You know the right answer?
Modify songVerse to play "The Name Game" (see OxfordDictionaries. com), by replacing "(Name)" with u...
Questions
question
Biology, 01.12.2020 14:00
question
English, 01.12.2020 14:00
question
Spanish, 01.12.2020 14:00
question
Spanish, 01.12.2020 14:00
Questions on the website: 13722362