{"id":19040,"date":"2021-09-30T11:00:36","date_gmt":"2021-09-30T05:30:36","guid":{"rendered":"https:\/\/python-programs.com\/?p=19040"},"modified":"2021-11-22T18:35:31","modified_gmt":"2021-11-22T13:05:31","slug":"python-program-to-enter-basic-salary-and-calculate-gross-salary-of-an-employee","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-enter-basic-salary-and-calculate-gross-salary-of-an-employee\/","title":{"rendered":"Python Program to Enter Basic Salary and Calculate Gross Salary of an Employee"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Check Duck Number<\/a>
\nGross Salary:<\/strong><\/p>\n

It denotes the amount paid out to an individual prior to any voluntary or mandatory deductions. As a result, it is the total pay received by an employee before taxes and other deductions. Gross salary includes all sources of income and is not limited to only cash income. As a result, it includes any benefits or services received by an employee. The salary that an employee receives, on the other hand, is the net salary after deductions.<\/p>\n

House rent allowance (HRA):<\/strong><\/p>\n

House rent allowance, or HRA, is a salary component that covers employees’ housing expenses.<\/p>\n

Formula to calculate the Gross Salary :<\/b><\/p>\n

Gross salary equals the sum of the basic salary plus the HRA and any other allowances.<\/p>\n

Gross salary = Basic salary + House Rent Allowance + Other Allowances<\/p>\n

Gross salary =basic + da + hr + da_on_ta<\/strong><\/p>\n

da=(15*basic)\/100<\/p>\n

hr=(10*basic)\/100<\/p>\n

da on ta=(3*basic)\/100<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Basic salary = 23000<\/pre>\n

Output:<\/strong><\/p>\n

The Employee's Gross salary from the given basic salary { 23000 } = 29440.0<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Basic salary = 18000<\/pre>\n

Output:<\/strong><\/p>\n

The Employee's Gross salary from the given basic salary { 18000 } = 23040.0<\/pre>\n

Program to Enter Basic Salary and Calculate Gross Salary of an Employee\u00a0 in Python<\/h2>\n

Below are the ways to calculate the Gross salary from the given basic salary :<\/p>\n