Question: travelClassAPI (1).py 1 #-*- coding: utf-8 -*- 2 class travelItem: 4 def init (self, itemID, itemName, itemCount): # Constructor to create inventory!tem 7def getID(self) #



travelClassAPI (1).py 1 #-*- coding: utf-8 -*- 2 class travelItem: 4 def init (self, itemID, itemName, itemCount): # Constructor to create inventory!tem 7def getID(self) # getID returns the tour ID 10 def getName(self): # getName returns the tour name 12 13 def setName (self, newName): 14 15 16 def getAvailableStart(self): 17 18 19 def appendTransaction (self, num) : 20 21 # setName sets the tour name # returns the starting availability # appendTransaction appends a transaction to the transactions list def getTransactions (self): 23 24 25 def getReservations (self): 26 27 28 29 30 31 def getAvailableEnd (self) 32 # getTra ns actions returns the List of transactions # returns the total of reservation transactions def getCancellations(self): # returns the total of cancellation transactions # returns the ending availability, which is availableStart minus transactions travelClassAPI (1).py 1 #-*- coding: utf-8 -*- 2 class travelItem: 4 def init (self, itemID, itemName, itemCount): # Constructor to create inventory!tem 7def getID(self) # getID returns the tour ID 10 def getName(self): # getName returns the tour name 12 13 def setName (self, newName): 14 15 16 def getAvailableStart(self): 17 18 19 def appendTransaction (self, num) : 20 21 # setName sets the tour name # returns the starting availability # appendTransaction appends a transaction to the transactions list def getTransactions (self): 23 24 25 def getReservations (self): 26 27 28 29 30 31 def getAvailableEnd (self) 32 # getTra ns actions returns the List of transactions # returns the total of reservation transactions def getCancellations(self): # returns the total of cancellation transactions # returns the ending availability, which is availableStart minus transactions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
