TextProject

#include <string>
#include <iostream>
using namespace std;

int main()
{
    string firstName, lastName, maidenName, birthTown;

    cout << "Type your first name and press enter: " << endl;
    cin >> firstName;

    cout << "Enter your last name: " << endl;
    cin >> lastName;

    cout << "Enter your mother's maiden name: " << endl;
    cin >> maidenName;

    cout << "Finally, enter the name of the city in which you were born: " << endl;
    cin >> birthTown;

    string result, temp;
    /********************************************************************************************************************** 
    * Creating your Star Wars name:
    * 1) Take the first 3 letters of your last name, append the first 2 letters of your first name. This is your first name.
    * 2) Take the first 2 letters of your mother's maiden name, append the first 3 letters of the town in which you were born. 
    ***********************************************************************************************************************/
    // TODO: Use input data and string functions to create Star Wars name, store in result.

    cout << "This is your Star Wars name: " << result << endl;

    system("PAUSE");

    return 0;
}
Comments