The current year and the year in which the employee joined the organization are entered through the keyboard. If the number of years for which the employee has served the organization is greater than 3 then a bonus of Rs. 2500/- is given to the employee. If the years of service are not greater than 3, then the program should do nothing.
This program is written in the Python programming language and it is designed to calculate the bonus for an employee based on the number of years they have been with the company.
current_year=int(input("Enter the Current Year :")) join_year=int(input("Enter the Year of Joining :")) diff=current_year-join_year if(diff>3): print("Bonus of Rs : 2500 /-"); else: print("No Bonus..")
Enter the Current Year :2022 Enter the Year of Joining :2009 Bonus of Rs : 2500 /-
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions