Computer Science, asked by pshabana7422, 1 month ago

class book:
BOOK_NUMBER=0
BOOKTITLE=""
PRICE=0.0
def TOTAL_COST(self,N,PRICE):
TOTAL_COST=PRICE*N
def INPUT(self):
self.BOOK_NUMBER=int(input("Enter Book Number:"))
self.BOOKTITLE=input("Enter BOOK TITLE: ")
self.PRICE=float(input("Enter Price: "))
def PURCHASE(self,PER_BOOk_PRICE):
self.PER_BOOk_PRICE=float(input("Enter per book price: "))
self.TOTAL_COST(10)
print("Total cost to be paid by the user:",TOTAL_COST)
obj=book()
obj.INPUT()
obj.PURCHASE(10)

Answers

Answered by Lallawmawmi001
1

Answer:

can u please explain it first..i dont understan

Similar questions