human
Program to calculate gross salary of a person | Function to calculate the salary of the person.
Condition to compute the allowance for the person.
Calculate gross salary.
Driver code.
Function call"
Solution in Python:

What is a code to program to calculate gross salary of a person and the other steps required?
assistant
#Here is code to program to calculate gross salary of a person and the other steps required.
 def computeSalary ( basic , grade ) :
	hra = 0.2 * basic
	da = 0.5 * basic
	pf = 0.11 * basic
	if grade == ' A ' :
		allowance = 1700.0
	elif grade == ' B ' :
		allowance = 1500.0
	else :
		allowance = 1300.0 ;
	gross = round ( basic + hra + da + allowance - pf )
	return gross
if __name__ == ' _ _ main _ _ ' :
	basic = 10000
	grade = ' A '
	print ( computeSalary ( basic , grade ) ) ;