Question: C++ Your assignment is just to modify the simple hello world program so that it collects some information from the user, and then echoes a

C++

C++ Your assignment is just to modify the simple hello world program

Your assignment is just to modify the simple hello world program so that it collects some information from the user, and then echoes a more personal greeting, modeled after a famous line from The Princess Bride. Here's what a transcript of your program should look like: Enter your name: Inigo Enter a relative: father Hello. My name is Inigo. You killed my father. Prepare to die. Your program asks for the name, and relative, stores the responses, and prints the greeting line at the end. That's it. Pretty easy, right? Hopefully so. Note: if you want to collect names / relatives with whitespace, e.g., "Inigo Montoya, or great grandmother's second cousin, then you'll want to use getline(cin, stringname) rather than cin >> stringname, but it is not required to do so. You may want to start with a template that looks something like this: #include 2 using std::cin; 3 using std::cout; 4 #include 5 using std::string; 7 int main() { 10}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!