Question: 2.15.3: Strings. Read the string variables myCity and myState from input, assuming that both the city and state are single words. Ex: If the input

2.15.3: Strings.

Read the string variables myCity and myState from input, assuming that both the city and state are single words.

Ex: If the input is Helena Montana, then the output is:

(How do I get the correct output shown below since I can't edit lines 1 -7 and 13-16)

2.15.3: Strings. Read the string variables myCity and myState from input, assuming

Ex: If the input is Helena Montana, then the output is: I am from Helena, Montana. Since the city and state are assumed to be single words, cin is used to read the string variables myCity and myState from input Not all tests passed. 1: Compare output Output is nearly correct, but whitespace differs. See highlights below. Input Your output I am from Helena, Expected output

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!