#include #include using namespace std; /* const string FIRST = "Herman"; const string LAST = "Smith"; const char MIDDLE = 'G'; */ int main () { string firstLast, lastFirst; string firstName, lastName; char middleInitial; cout << "Enter your first name: "; cin >> firstName; cout << "Enter your last name: "; cin >> lastName; cout << "Enter your middle initial: "; cin >> middleInitial; firstLast = firstName + ' ' + lastName; lastFirst = lastName + ", " + firstName; cout << "The name in first-last format is " << firstLast << endl; cout << "The name in last-first format is " << lastFirst << endl; cout << "The name in last-first-initial format is "; cout << lastFirst << ", " << middleInitial << "." << endl; return 0; }