Answer to Question #23281 in C# for henry

Question #23281
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;

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS