ACompany
decides to
give
bonus to all its employees
on Diwali. A 5% bonus on salary is given to the male
workers and 10% bonus on
salary to the female workers. write a python program to enter the salary of the employee
and gender of the employee. If the salary of the
employee is less than Rs/-10,000 then the employee gets
an extra 2% bonus on salary. calculate the bonus that
has to be given to the employee and displays the salary
that the employee will get .
Answers
Answer:
ACompany
decides to
give
bonus to all its employees
on Diwali. A 5% bonus on salary is given to the male
workers and 10% bonus on
salary to the female workers. write a python program to enter the salary of the employee
and gender of the employee. If the salary of the
employee is less than Rs/-10,000 then the employee gets
an extra 2% bonus on salary. calculate the bonus that
has to be given to the employee and displays the salary
that the employee will get .
Explanation:
please mark me as brain list
PYTHON CODE
x = input('Enter your name : ')
y = int(input('Enter your salary : '))
z= input('Enter your gender (M/F) : ')
if by< 10000 and z == 'M':
print(str(x) + ' your salary with bonus is ' + str(y * 1.07))
elif y< 10000 and z == 'F':
print(str(x) + ' your salary with bonus is ' + str(y* 1.12))
if y >= 10000 and z == 'M':
print(str(x) + ' your salary with bonus is '+ str(y * 1.05))
elif y>= 10000 and z=='F':
print(str(x) + ' your salary with bonus is '+ str(y * 1.1))
#SPJ3