4.A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years. Ask user for their salary and year of service and print the net bonus amount.
Answers
Answered by
9
Given : A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years.
To find : print the net bonus amount. taking Salary & service as Input
Solution:
START
Inputs :
User Salary = S
User Service = T
Bonus B = 0
if ( T ≥ 5 )
{
B = B + ( S * T * 5) /100
}
Print " Net Bonus Amount = "B" "
END
Learn more:
a salesman receives a salary rs 1000 per month and 10 ...
https://brainly.in/question/9370529
Answered by
3
Answer:
salary = eval(input("Enter your salary:"))
service_yrs = eval(input("Enter Years of service:"))
if service_yrs > 5:
print("Yours salary(+Bonus) = ",salary + (salary)*5/100)
else:
print("You are not eligible for bonus as you have less service years.")
Step-by-step explanation:
Similar questions