Complete the following program to print out a greeting message as shown in
the sample message.
//Student: John Doe
//Class: CSC1321-01
//Programming Assignment: P1 (Printing)
//Date: 8/22/2018
//The program takes first and last names from the user and prints a greeting on the screen.
#include
#include
using namespace std;
int main ()
{
string greetingMessage;
string firstName;
string lastName;
string fullName;
//Ask the user to enter both first name and last name
//and store into the two variables: firstName and lastName
//...
//Combine the first name and last name into a full name in form: "Last Name, First Name"
//and store into variable fullName
//...
//Combine greeting "Good morning" with the full name and store into variable greetingMessage
//...
//Print out the greeting message in the format like the sample given below.
//...
return 0;
}
//Sample input:
John Doe
//Sample output:
***********************************************
Good morning Doe, John.
***********************************************
Press any key to continue . . .