class customer:
def init(self):
self.customemumber=111
self.customemame=‘Leena’
self.qty=0
self.price=0
self.discount=0
self.netprice=0
def caldiscount(self):
totalprice = self.price*self.qty
if totalprice >= 50000:
self.discount=totalprice * 0.25
elif totalprice >= 25000:
self.discount = totalprice * 0.15 else:
self.discount = totalprice * 0.10
self.netprice = totalprice – self.discount
def input(self):
self.customernumber=input(“Enter Customer Number”)
self.customemame = raw_input(“Enter Customer Name”)
self.qty = input(“Enter Quantity”)
self.price = input(“Enter Price”)
self.caldiscount()
def show(self):
print “Customer Number”,
self.customernumber
print “Customer Name”,
self.customemame
print “Quantity”,self.quanti-ty
print “Price”,self.price
print “Discount”,self.discount
print “Net price”,self.netprice
c = customer()
c.inputO c.show()