#include<iostream>
using namespace std;
int main()
{
int salary;
string performence;
cout << "enter the employee salary=";
cin >> salary;
cout << "enter the employee performance=";
cin >> performence;
if (salary<50000)
{
salary = salary + (salary * (10.0 / 100.0));
cout << "your new salary is:" << salary << endl;
}
else if (salary>50000)
{
salary = salary + (salary *(5.0 / 100.0));
cout << "your new salary is:" << salary << endl;
}
if (performence == "A")
{
salary = salary + (salary * (5.0 / 100.0));
cout << "your performance of one year is good so your salary increase 5%:"<<salary<<endl;
}
else if (performence == "B")
{
salary = salary + (salary * (2.5 / 100));
cout << "your performance of one year is above average so your salary increase 2.5%:"<<salary<<endl;
}
else
{
cout<<"you enter a wrong input";
}
return 0;
}
No comments:
Post a Comment