Please correct this code so that the user will input Employeeand B first name, last name, as well as beginning salary. For somereason it just prints out the triple letters I used and does notallow for input. Please provide a copyable text code as well as ascreenshot of the output where you are entering the variablesrequested for a quick thumbs up.
//3_11.cpp
#include <iostream>
#include <string>
using namespace std;
class Employee
{
public:
//CLASS CONTRUCTOR
Employee(string firstname, string lastname, int salary)
{
setFirstname(firstname);
setLastname(lastname);
setMonthlysalary(salary);
}
//FUNCTIONS FOR NAME AND SALARY
void setFirstname(string firstname)
{
first_name=firstname;
}
void setLastname(string lastname)
{
last_name=lastname;
}
void setMonthlysalary(int salary)
{
if (salary <= 0)
salary = 0;
if (salary > 0)
monthly_salary=salary;
}
string getFirstname()
{
return first_name;
}
string getLastname()
{
return last_name;
}
int getMonthlysalary()
{
return monthly_salary;
}
private:
string first_name, last_name;
int monthly_salary;
};
int main()
{
int
PayPal Gateway not configured
PayPal Gateway not configured