Question: 2.15.3: Strings. The program reads the string variables personName and locationName from input. Output the following, using variables personName and locationName. End with a newline.

2.15.3: Strings.

The program reads the string variables personName and locationName from input. Output the following, using variables personName and locationName. End with a newline.

Ex: If the input is Taj Peru, then the output is:

Taj lives in Peru.

(How do I get the correct input?)

2.15.3: Strings. The program reads the string variables personName and locationName from

Jump to level 1 The program reads the string variables personName and locationName from input. Output the following, using variables personName and locationName. End with a newline. Ex: If the input is Taj Peru, then the output is: Taj lives in Peru. 12345678910111213141516#include#includeusingnamespacestd;intmain({stringpersonName;stringlocationName;cin>>personName;cin>>locationName;cout

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!