Computer Science, asked by VanilaSky, 4 months ago

Write a python program to enter bill amount and ask the user the payment mode and give the discount based on payment mode. Also display net payable amount.
Mode | Discount
Credit card | 10% of bill amount
Debit card | 5% of bill amount
Net banking | 2% of bill amount
Otherwise | 0% of bill amount​​

Answers

Answered by Anonymous
2

bill = int(input("Enter bill amount:"))

bill = int(input("Enter bill amount:"))discount = int(input("Enter discount percentage:"))

bill = int(input("Enter bill amount:"))discount = int(input("Enter discount percentage:"))output = bill - (bill * discount / 100)

bill = int(input("Enter bill amount:"))discount = int(input("Enter discount percentage:"))output = bill - (bill * discount / 100)print("After discount your bill is: "

Answered by ayushkandari1
0

Answer:

amount = int(input('Amount: '))

mode = str(input('''Please specify the mode

credit card | 10% of bill amount

Debit card | 5% of bill amount

Net banking | 2% of bill amount

Otherwise | 0% of bill amount'''))

if mode == "Credit Card":

   amount = amount - 10/100*amount

elif mode == "Debit Card":

   amount = 95/100*amount

elif mode == "Net Banking":

   amount = 98/100*amount

else:

   amount = amount

print("payable amount is ", amount)

Explanation:

Similar questions