In Python, #Create a basket class, which has a class/static attribute pricelist (string/float dictionary - you can hardcode this) #The constructor should set the name to the name passed as a parameter...


In Python,


#Create a basket class, which has a class/static attribute pricelist (string/float dictionary - you can hardcode this)


#The constructor should set the name to the name passed as a parameter and initialise the contents (empty)


#You should provide an addItem method taking product,quantity which adds this to the contents


#and a getQuantity method taking a product, which returns the relevant quantity




Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here