WebFeb 6, 2024 · Python Program to Calculate Gross Salary Here, The formula for calculating the HDA (House Rent Allowance) and the DA (Dearness Allowance) in the If… condition is: HRA = (Basic_salary * 10) / 100, DA = (Basic_salary * 10) / 100. Whereas, The formula for calculating the DA (Dearness Allowance) in the else condition is: DA = … WebNov 27, 2024 · Python Salary Program. House rent allowance (HRA): House rent allowance, or HRA, is a salary component that covers employees’ housing expenses. Formula to calculate the Gross Salary : Gross salary equals the sum of the basic salary plus the HRA and any other allowances. Gross salary = Basic salary + House Rent …
C Program to Calculate Gross Salary of an Employee
WebJun 21, 2024 · If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the Employee's salary is input, write a program to find his gross salary. NOTE: Gross Salary = Basic Salary + HRA + DA. Input . The first line contains an integer T, total number of testcases. WebMar 17, 2014 · Payroll program for Python using multiple functions and return function. Ok I need help with this program. Here is the assignment. Write a payroll program that pays … robex speed crete
How To Calculate Gross Pay (With Formulas and Examples)
WebOct 15, 2024 · # employee class code in Python # class definition class Employee: __id =0 __name ="" __gender ="" __city ="" __salary =0 # function to set data def setData ( self,id, name, gender, city, salary): self. __id =id self. __name = name self. __gender = gender self. __city = city self. __salary = salary # function to get/print data def showData ( … WebApr 27, 2013 · def main(): hours = float(input('How many hours did you work: ')) while hours 86: print ("Error- Hours must be at least 8 and less than 86") hours = float(input('re-enter hours worked: ')) rate = float(input('What is your hourly rate? ')) while rate 50: print ("Error- Payrate must be at least $7.00 and less than $50.00") rate = … WebDec 13, 2024 · Then this approach which uses only the basic Python commands and types should be helpful: # read file content with open ('emp_data.txt') as f: file_content = f.readlines () # collect data data = {} for i, line in enumerate (file_content): if i == 0: # discard header continue index, person, age, job, salary, years = line.split (",") job = job ... robex shelton