In a company an employee is paid as under: If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee's salary is input by the user write a program to find his gross salary.

In a company an employee is paid as under:
If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary.If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee's salary is input by the user write a program to find his gross salary. 



#include<iostream>
using namespace std;
int main ()
{
float x,bhra,bda,ahra,ada,bgs,ags;
cout<<"\t * Gross Salary Calculator * "<<endl;
cout<<"\n";
cout<<"Enter your Basic Salary "<<endl;
cin>>x;
bhra=x*0.10;
bda=x*0.90;
ahra=500;
ada=x*0.98;
bgs=x+bhra+bda;
ags=ahra+ada;
if (x<1500)
{
cout<<"\n";
cout<<"Your Gross Salary is ="<<bgs;
}
else
{
cout<<"\n";
cout<<"Your Gross Salary is ="<<ags;
}
}


In a company an employee is paid as under:  If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary  and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500  and DA = 98% of basic salary.  If the employee's salary is input by the user write a program to find his gross salary.


In a company an employee is paid as under:  If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary  and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500  and DA = 98% of basic salary.  If the employee's salary is input by the user write a program to find his gross salary.