Question: P1.3 Write a program that prints out a message Hello, my name is Hal! Then, on a new line, the program should print the message

 P1.3 Write a program that prints out a message "Hello, my

P1.3 Write a program that prints out a message "Hello, my name is Hal!" Then, on a new line, the program should print the message "What is your name?" As in Exercise P1.2, just use the following lines of code: string user_ name; getline cin, user_name) Finally, the program should print the message "Hello, aser name. I am glad to meet you!" To print the user name, simply use cout before the main function Here is a typical program run. The user input is printed in color. Hello, my name is Hal! What is your name? Dave Hello, Dave. I am glad to meet you

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!