Computer Science, asked by shresthsahu987, 6 months ago

Accept income of a person and calculate the income tax on the basis of the following: [15]



Income Tax

Up to Rs 100000 nil

>100000 and up to 250000 7%

>250000 and up to 400000 15%

>400000 and up to 1000000 25%

>1000000 45%​

Answers

Answered by faseelaandru
0

Python Code

inc = int(input("Enter your average income: "))

if(inc <= 100000):

    print("No income tax")

elif(inc  > 100000 && inc < 250000):

     income_tax = inc * 7/100

    print("Your income tax is", income_tax)

elif(inc > 250000 && inc < 400000):

    income_tax_1 = inc * 15/100

     print("Your income tax is", income_tax_1)

elif(inc > 400000 && inv < 1000000):

   income_tax_2 = inc * 25/100

   print("Your income tax is", income_tax_2)

elif(inc > 1000000):

   income_tax_3 = inc * 45/100

   print("Your income tax is", income_tax_3)

else:

    print("Error there's something wrong")

Similar questions