Write a program in Python to accept the name, gender, no of days worked in a month
and if the employee is skilled worker [yes or no] from the user. If the employee is male,
then the wage per day is 250 rupees and if the employee is female then the wage per day
is 350 rupees. Calculate the wage [wage per day*no of days]. If the employee is skilled
worked then he/she gets an additional pay of rupees 30 per day
Answers
Answered by
9
name = input("Enter your name")
gender = input("Enter your gender")
worked = int(input("Enter the number of days you worked for"))
is_skilled = input("Are you a skilled worker?")
if gender == "male":
wage = 250
if is_skilled == "yes":
wage = 250 + 30
pay = worked*wage
print(f"Your wage is {pay}")
else:
wage = 250
pay = worked*wage
print(f"Your wage is {pay}")
elif gender == "female":
wage = 350
if is_skilled == "yes":
wage = 350 + 30
pay = worked*wage
print(f"Your wage is {pay}")
else:
wage = 350
pay = worked*wage
print(f"Your wage is {pay}")
else:
print("Error")
Similar questions