C Program For Find The Gross Salary of an Employee

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. ).

Check This:- Hacker rank solution for Strings, Classes, STL, Inheritance in C++.

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++.



int main()
          /* Program By Ghanendra Yadav
  Visit http://www.programmingwithbasics.com/
  float GrossPayment,basic,da,hra,da1,hra1;

  printf("Enter basic salary : ");
  scanf("%f", &basic);

  printf("Enter DA : ");
  scanf("%f", &da1);

  printf("Enter HRA : ");
  scanf("%f", &hra1);

  da = (da1 * basic) / 100;
  hra = (hra1 * basic) / 100;

  GrossPayment = basic + da + hra;

  printf("\nGross Salary :%f\n",GrossPayment);
  return (0);

See Also :- Java Program For Find The Gross Salary Of An Employee


C Program For Find The Gross Salary Of An Employee

You May Like This:-

Previous Post
Next Post

post written by:

Hi, I’m Ghanendra Yadav, SEO Expert, Professional Blogger, Programmer, and UI Developer. Get a Solution of More Than 500+ Programming Problems, and Practice All Programs in C, C++, and Java Languages. Get a Competitive Website Solution also Ie. Hackerrank Solutions and Geeksforgeeks Solutions. If You Are Interested to Learn a C Programming Language and You Don't Have Experience in Any Programming, You Should Start with a C Programming Language, Read: List of Format Specifiers in C.
Follow Me