If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. 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 through the keyboard write a program to find his gross salary
This program is written in the Python programming language and it is designed to calculate the gross salary of an employee based on their basic salary.
bs = float(input("Enter the Basic Salary :")) if(bs<1500): hra=bs*0.1 da=bs*0.9 else: hra=500 da=bs*0.98 gs=bs + hra + da print("Gross Salary Rs :", gs)
Enter the Basic Salary :12000 Gross Salary Rs : 24260.0
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions