Computer Science, asked by alpha01234, 4 months ago

Write a program in python to accept monthly salary from the user , and display income tax with the help of the following rules : Monthly Salary : >90000 , 60000-90000 , <60000 ; Income tax : 20% of monthly salary , 15% of monthly salary , 10% of monthly salary .​

Answers

Answered by jai696
8

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def calc_income_tax(salary):

if salary > 90000:

return salary * .2

if 60000 <= salary <= 90000:

return salary * .15

return salary * .1

s = float(input("enter salary: "))

print(f"income tax: {calc_income_tax(s):.2f}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by lucky52846
0

Answer:

when does human resource turn into liability than an asset.

Similar questions