Tax code

Question

Write a program to accept the cost price of a bike and display the road tax to be paid according to the following criteria:
Cost price (in Rs)> 100000  Tax will be15%
Cost price (in Rs)> 50000 and <= 100000 :Tax will be10%
Cost price (in Rs)<= 50000 : Tax will be 5%

Answers ( 2 )

    0
    2024-08-25T12:21:20+05:30

    tax = 0
    pr=int(input(“Enter the price of bike”))
    if pr > 100000
    tax = 15/100*pr
    elif pr>50000 and pr <=100000
    tax = 10/100*pr
    else:
    tax = 5/100*pr
    print("Tax to be paid: ", tax)

    1
    2024-08-25T13:37:00+05:30

    tax=0
    pr=int(input(“Enter the price of bike”))
    if pr>100000:
    tax=15/100*pr
    elif pr>50000 and pr<=100000:
    tax=10/100*pr
    else:
    tax=5/100*pr
    print("Tax to be paid",tax)


    Attachment

Leave an answer to Harshit

Sorry, you do not have permission to answer to this question .