Write a program to take Quantity and calculate Discount on Bill and Bill Amount after Discount

Tech Programmer
0

WRITE A PROGRAM TO TAKE QUANTITY AND CALCULATE DISCOUNT ON BILL AND BILL AMOUNT AFTER DISCOUNT.


CODE FOR THE ABOVE  PYTHON  PROGRAM :



n = int(input(" HELLO CUSTOMER PLEASE ENTER THE NO OF PRODUCTS YOU'VE PURCHASED : "))
if(n>=50):
    bill = ((n*100)*90)/100
    print(" YOUR BILL AMOUNT IS  {} ".format(bill))
elif(n>=30 and n<50):
    bill = ((n*100)*95)/100
    print(" YOUR BILL AMOUNT IS  {} ".format(bill))
else:
    print(" YOUR BILL AMOUNT IS   : " ,n*100)


WRITTEN CODE FOR THE ABOVE PROGRAM :


n = int(input(" HELLO CUSTOMER PLEASE ENTER THE NO OF PRODUCTS YOU'VE PURCHASED : "))

if(n>=50):

    bill = ((n*100)*90)/100

    print(" YOUR BILL AMOUNT IS  {} ".format(bill))

elif(n>=30 and n<50):

    bill = ((n*100)*95)/100

    print(" YOUR BILL AMOUNT IS  {} ".format(bill))

else:

    print(" YOUR BILL AMOUNT IS   : " ,n*100)



OUTPUT :



Post a Comment

0Comments
Post a Comment (0)

Featured Highlighted Categories

You'll discover all of the most up-to-date bring innovative here.

Python List theory with List Programs
Get complete python lists theory and list basic and insane programs for your practice.
CBSE SAMPLE PAPERS
Get CBSE sample and question papers of last 7 years with answers to get best practice for your Board Exams
Python String theory and String Programs
Python strings complete theory with illustrations and practice programs for free