salary = float(input("Enter the salary: "))
sex = input("Enter the sex (M/F): ")
if salary < 10000:
bonus = 0.07 * salary
else:
if sex == "M":
bonus = 0.05 * salary
else:
bonus = 0.1 * salary
salary_with_bonus = salary + bonus
print("Bonus: ", bonus)
print("Salary with bonus: ", salary_with_bonus)
To embed this project on your website, copy the following code and paste it into your website's HTML: