#include #include using namespace std; int main () { string FirstName, MiddleName, LastName; int NameLength; string Initials; // get the names // count the letters // output the substrings (1,1) // output the length of the names. cout << "Please Enter your First Name=> "; cin >> FirstName; cout << "Your first name is " << FirstName << endl; cout << "Please Enter your Middle Name=> "; cin >> MiddleName; cout << "Your middle name is " << MiddleName << endl; cout << "Please Enter your Last Name=> "; cin >> LastName; cout << "Your last name is " << LastName << endl; Initials = FirstName.substr(0,1)+MiddleName.substr(0,1)+LastName.substr(0,1); cout << "Your initials are " << Initials << endl; NameLength = FirstName.size() + MiddleName.size() + LastName.size(); cout << "And your name is " << NameLength << " characters long " << endl; }