Write a program to evaluate the net salary of an employee given employee if his basic salary is 12000GHS , Domestic allowance(DA) is 12% of basic salary, HRA is 250. He is taxed Income Tax of 20% of his basic salary.
Net Salary = basic salary + DA+ HRA –Income Tax
#include "iostream"
using namespace std;
int main()
{
int basic_salary = 12000;
double DA = 0.12;
int HRA = 250;
double income_tax = 0.20;
int net_salary = basic_salary + DA*basic_salary + HRA - income_tax*basic_salary;
cout<<net_salary;
return 0;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C#