You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# A7 - Your company has had a great year and are going to offer a bonus of 10% to any employee who has a service of over 3 years.
1
+
# A7 - Your company has had a great year and are going to offer a bonus of 10% to any employee who has a service of over 3 years.
2
2
# Ask the user to input their current salary and years of service and print out their salary and their bonus or "No bonus" if they are not receiving one.
3
-
# salary = int(input("What is your current salary?\n"))
4
-
# years_of_service = int(input("How many years have you worked here?\n"))
3
+
salary=int(input("What is your current salary?\n"))
4
+
years_of_service=int(input("How many years have you worked here?\n"))
5
5
6
6
ifyears_of_service>3:
7
7
print("Your current salary is"+str(salary)+", your bonus is"+str(salary*0.1))
8
8
else:
9
-
print("Your current salary is"+str(salary)+", you get no bonus.")
9
+
print("Your current salary is"+str(salary)+", you get no bonus.")
0 commit comments