heyy guys!! #NO SPAMS#
A question of JAVA program
WAP 2 input employees"s group no,age and basic salary and then calculate the net salary of the employee using the formula:
gross salary=basic salary+DA+HRA
net salary= gross salary-deduction
the folloowing condition will apply 4 the calculation
1)DA=40%of the basic salary
2)HRA=30%of the basic salary
3)PF deduction =10%of the basic salary
4)IT deduction =20%of the basic salary
this question is for 40 marks and the correct program which will be made will marked as the brainliest answer
if u dont know just dont answer #NO SPAMS#
:) :) :) :)
Answers
Answered by
0
Let we assume 12000 as basic salary 1 da is 40% of basic salary
12000*40/100= 4800
12000+4800=16800
Hra is 30% of basic salary
12000*30/100=3600
12000+3600=15600
Pf is deduction on 10% of basic salary
12000*10/100=1200
12000-1200=10800
It deduction of basis salary of 20%
12000*20/100=2400
12000-2400=9600
include <stdio.h>
//main program
int main()
{
//variable to store values
float basic, da, hra, ta, others;
float pf,it;
float net_salary;
//input required fields
printf("Enter Basic Salary ($): ");
scanf("%f",&basic);
printf("Enter HRA ($): ");
scanf("%f",&hra);
printf("Enter TA ($): ");
scanf("%f",&ta);
printf("Enter others ($): ");
scanf("%f",&others);
//calculate DA 12% of Basic Salary
da = (basic*12)/100;
//calculate PF 14% of Basic salary
pf = (basic*14)/100;
//calculate IT, 15% of Basic salary
it = (basic*15)/100;
//calculate net salary
net_salary = basic + da + hra + ta + others - (pf+it);
//printing Net salary
printf("Net Salary is: $ %.02f\n",net_salary);
return 0;
12000*40/100= 4800
12000+4800=16800
Hra is 30% of basic salary
12000*30/100=3600
12000+3600=15600
Pf is deduction on 10% of basic salary
12000*10/100=1200
12000-1200=10800
It deduction of basis salary of 20%
12000*20/100=2400
12000-2400=9600
include <stdio.h>
//main program
int main()
{
//variable to store values
float basic, da, hra, ta, others;
float pf,it;
float net_salary;
//input required fields
printf("Enter Basic Salary ($): ");
scanf("%f",&basic);
printf("Enter HRA ($): ");
scanf("%f",&hra);
printf("Enter TA ($): ");
scanf("%f",&ta);
printf("Enter others ($): ");
scanf("%f",&others);
//calculate DA 12% of Basic Salary
da = (basic*12)/100;
//calculate PF 14% of Basic salary
pf = (basic*14)/100;
//calculate IT, 15% of Basic salary
it = (basic*15)/100;
//calculate net salary
net_salary = basic + da + hra + ta + others - (pf+it);
//printing Net salary
printf("Net Salary is: $ %.02f\n",net_salary);
return 0;
Anonymous:
if u dont have any problem plzz follow me
Answered by
1
Malleability and ductility are related. A malleable material is one in which a thin sheet can be easily formed by hammering or rolling. In other words, the material has the ability to deform under compressive stress. In contrast, ductility is the ability of a solid material to deform under tensile stress.
Similar questions