Calculate employee wage This is for a class assignment. The objective is to write a program that will take in user input for employee information and print the wage based on hours worked.

Please review my code. 

#include &lt;ctime&gt;
#include &lt;iostream&gt;

using namespace std;

int GetSalary(int,int,int,int);
int GetYearsOfService(int);


int main()
{
    int employeeId, hoursWorked, yearJoined, fullTime;

    cout &lt;&lt; "Employee ID: ";
    cin &gt;&gt; employeeId;

    cout &lt;&lt; "Hours Worked: ";
    cin &gt;&gt; hoursWorked;

    cout &lt;&lt; "Year Joined: ";
    cin &gt;&gt; yearJoined;

    cout &lt;&lt; "FullTime Status (0 for no, 1 for yes): ";
    cin &gt;&gt; fullTime;

    double salary = GetSalary(employeeId, hoursWorked, yearJoined, fullTime);
    double taxes = salary * 0.15;

    cout &lt;&lt; endl &lt;&lt; "Empolyee ID: " &lt;&lt; employeeId &lt;&lt; endl &lt;&lt; "\tFull time?: ";

    if (fullTime == 0)
        cout &lt;&lt; "No";
    else
        cout &lt;&lt; "Yes";

    cout &lt;&lt; endl &lt;&lt; "\tHours worked: " &lt;&lt; hoursWorked &lt;&lt; endl &lt;&lt; "\tWages (after tax) for the month: $"
         &lt;&lt; salary - taxes &lt;&lt; endl &lt;&lt; "\tAmount withheld for tax: $" &lt;&lt; taxes;

    return 0;
}

int GetSalary(int employeeId, int hoursWorked, int yearJoined, int fullTime) {
    double hourlyWage = 14;

    //Get the hourly wage
    int wage = 14;

    if( wage&gt;=50 &amp;&amp; wage &lt; 100){
        wage += 1.25;
    }else if( wage &lt; 160){
        wage += 2.0;
    }else{
        wage += 3.0;
    }

    double baseSalary = hourlyWage * hoursWorked;
    int yearsOfService = GetYearsOfService(yearJoined);

    //Check if any additional benefits/bonusses are to be paid
    if (fullTime == 1)
    {
        baseSalary += (35 *yearsOfService);
        baseSalary += 300;
    }
    else {
        if (yearsOfService &gt; 5)
            baseSalary += (35 * yearsOfService);
    }
    return baseSalary;
}

int GetYearsOfService(int yearJoined) {
    time_t curTime = time(NULL);

    int elapsed = curTime / (365 * 24 * 60 * 60);

    return 1970 + elapsed - yearJoined;
}
My first review in awhile, this is short, sorry. I'm sure others will add more. 


Please stop doing using namespace std. Read
this.
Using double for representing currency is
bad.
But since this is an assignment, it probably won't matter much.
Use constant variables to represent magic numbers like .15 and
3.0. Create a const variable named TAX_RATE for instance.
You are returning an int yet salary is of type double?
time_t curTime = time(NULL);

Use
nullptr
(C++11).