Computer Science, asked by Pradiptamondal42, 10 hours ago

2. A company decided to give bonus to employee according to

following criteria:

Time period of Service Bonus

More than 10 years 10%

>=6 and <=10 8%

Less than 6 years 5%

Ask user for their salary and years of service and print the net

bonus amount [Netbonusamount=(bonus*salary)/100]
Please solve this answer.​

Answers

Answered by Plaban25
4

Answer:

salary =int(input("Enter your salary > "))

service= int(input("Enter the year of service > "))

if service > 10:

net_bonus= (10 / 100) * salary

if service >=6 and service <=10:

net_bonus = (8 / 100) * salary

if service < 6:

net_bonus = (5 / 100) * salary

print("Net Bonus is ", net_bonus)

Similar questions