Question: C++ please (1) (2) (3) Complete this problem by defining two string variables named empty and greeting. Store the word Hello in greeting and store

C++ please

(1)

C++ please (1) (2) (3) Complete this problem by defining two string

(2)variables named empty and greeting. Store the word Hello in greeting and

(3)

store the empty string in empty. strings.cpp Write a program that reads

Complete this problem by defining two string variables named empty and greeting. Store the word Hello in greeting and store the empty string in empty. strings.cpp Write a program that reads in the first and last name of a person and formats the full name as the last name, followed by a comma, a space, and the first name. For example: Please enter your first and last name on the next line. Harry Morgan Morgan, Harry name.cpp \( \begin{aligned} 1 & \text { \#include } \\ 2 & \text { \#include } \\ 3 & \text { un } \\ 4 & \text { using namespace std; } \\ 5 & \text { int main() } \\ 7 & \{ \\ 8 & \text { cout } \ll \text { "Please enter your first and last name on the next line." } \\ 9 & \text { endl; } \\ 10 & \text { cout } \ll \text { full_name } \ll \text { endl; } \\ 11 & \text { cotro; } \\ 12 & \text { return } 0 ;\end{aligned} \) Use the correct input to initialize the name variable. main.cpp

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!