Problem:- Write A C++ Program For Find The Gross Salary Of An Employee. Gross salary is different from Net, Salary gross salary calculated annual basis we can calculate a gross salary by using the following formula (Gross salary = Net Salary - Deduction. ).
Deduction = Tax ( HRA. + DA. + MA. ).
Formula's :- Gross Salary = Basic + Da + Hra + Ma.
Deduction = Gross Salary - Pf - Pt - It.
Net Salary = Gross Salary - Deduction.
See Also:- C Program For Find The Gross Salary Of An Employee
Logic:- For finding a gross salary of Employee we need to calculate DA and HRA then Sum Of Basic Salary + HRA + DA. after calculating the sum print the sum. So basically first we calculate a DA, and HRA after that we add basic salary + HRA +DA so, in this way, we can find the Gross salary of an employee.
Also Check:- Geeksforgeeks solution for School, Basic, Easy, Medium, Hard in C++.
Solution:-
#include<iostream>
using namespace std;
int main()
{
/* Program By Ghanendra Yadav
Visit http://www.programmingwithbasics.com/
*/
float GrossPayment,basic,da,hra,da1,hra1;
cout<<" Enter basic salary : ";
cin>>basic;
cout<<" Enter DA : ";
cin>>da1;
cout<<" Enter HRA : ";
cin>>hra1;
da = (da1 * basic) / 100;
hra = (hra1 * basic) / 100;
GrossPayment = basic + da + hra;
cout<<"\n Gross Salary :"<<GrossPayment<<endl;;
return (0);
}
See Also:- Java Program For Find The Gross Salary Of An Employee
Output:-
1. Hacker Rank Solution for 30 Days of Code
2. Hacker Rank solution for Attribute Parser
3. Java Program For Find The Gross Salary Of An Employee
4. C++ Program For School Management System ( SMS Project ) With Source Code
5. Hacker Rank Solution For Mini-Max Sum
6. Hacker Rank Solution For Birthday Cake Candles
7. C++ Program For Store Employee Information And Display Using Structure
8. C Program For Find A Grade Of Given Marks Using Switch Case
9. C Program For HEAP Sort In Ascending Order Also Show Complexity
10. C++ Program For Selection Sort Using Function
Deduction = Tax ( HRA. + DA. + MA. ).
Formula's :- Gross Salary = Basic + Da + Hra + Ma.
Deduction = Gross Salary - Pf - Pt - It.
Net Salary = Gross Salary - Deduction.
See Also:- C Program For Find The Gross Salary Of An Employee
Logic:- For finding a gross salary of Employee we need to calculate DA and HRA then Sum Of Basic Salary + HRA + DA. after calculating the sum print the sum. So basically first we calculate a DA, and HRA after that we add basic salary + HRA +DA so, in this way, we can find the Gross salary of an employee.
Also Check:- Geeksforgeeks solution for School, Basic, Easy, Medium, Hard in C++.
Solution:-
#include<iostream>
using namespace std;
int main()
{
/* Program By Ghanendra Yadav
Visit http://www.programmingwithbasics.com/
*/
float GrossPayment,basic,da,hra,da1,hra1;
cout<<" Enter basic salary : ";
cin>>basic;
cout<<" Enter DA : ";
cin>>da1;
cout<<" Enter HRA : ";
cin>>hra1;
da = (da1 * basic) / 100;
hra = (hra1 * basic) / 100;
GrossPayment = basic + da + hra;
cout<<"\n Gross Salary :"<<GrossPayment<<endl;;
return (0);
}
See Also:- Java Program For Find The Gross Salary Of An Employee
Output:-
You May Like This:-
1. Hacker Rank Solution for 30 Days of Code
2. Hacker Rank solution for Attribute Parser
3. Java Program For Find The Gross Salary Of An Employee
4. C++ Program For School Management System ( SMS Project ) With Source Code
5. Hacker Rank Solution For Mini-Max Sum
6. Hacker Rank Solution For Birthday Cake Candles
7. C++ Program For Store Employee Information And Display Using Structure
8. C Program For Find A Grade Of Given Marks Using Switch Case
9. C Program For HEAP Sort In Ascending Order Also Show Complexity
10. C++ Program For Selection Sort Using Function
0 Comments: