/* Dan Bennett September 2015 Write a program that prints an invitation to a birthday part. Prompt for name Prompt for Street address Prompt for City/State/Zip Print letter The information about the birthday boy/girl will be constants. */ #include using namespace std; const string BIRTHDAY_NAME = "Dan"; const string PARTY_YEAR = "First"; const string PARTY_DATE = "January 1, 2015"; const string TAB_OVER = "\t\t\t\t\t\t"; int main() { string guestName, streetAddress, cityStateZip; // get the guest name cout << "Enter the Guest's Name => "; getline(cin, guestName); cout << endl; // and address cout << "Enter the street address => "; getline(cin, streetAddress); cout << endl; cout << "Enter City, State, Zip => "; getline(cin, cityStateZip); cout << endl; // inside address cout << TAB_OVER << "Dan Bennett" << endl; cout << TAB_OVER << "158 Ross Hall" << endl; cout << TAB_OVER << "Edinboro Pa, 16444" << endl; cout << endl; cout << guestName << endl; cout << streetAddress << endl; cout << cityStateZip << endl; // greeting cout << endl; cout << "Dear " << guestName << ":" << endl; // body cout << "You are invited to " << BIRTHDAY_NAME << "'s " << PARTY_YEAR << " birthday party" << endl; cout << "The party will be at our house on " << PARTY_DATE << endl; cout << "Please consider attending to help " << BIRTHDAY_NAME << " celebrate." << endl; cout << endl; //Closing, signature cout << "Sincerely, " << endl; cout << "Dan " << endl; return 0; }