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
1
Expert's answer
2013-01-30T11:07:38-0500
#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;
Comments
Leave a comment