I don't know much Python, but I'd like to see an idea of a mini-project.
I want you to create a home appliance catalog program consisting of 7 classes:
The catalog class must:
- generate 4 attributes (price, consumption, producer and product_code)
- to populate a global variable with a list of objects on each created object
- it must generate two variables of the class called class and subclass that represent the class of equipment (eg "small appliances" or "large home appliances") and the equipment sub-class (ex "mixer"). These will be used to find all objects of a particular class / subclass from the list of global objects.
- allow sorting of global list items by price
- allow sorting of items from the global list after consumption
- Allow display of all objects from a producer
- allow the display of all objects in a subclass - a search after a character string given by the keyboard user
The Large_Appliances Class will inherit the catalog
-Create a home appliance catalog program consisting of 7 classes:
The catalog class must:
- generate 4 attributes (price, consumption, producer and product_code)
- to populate a global variable with a list of objects on each created object
- it must generate two variables of the class called class and subclass that represent the class of equipment (eg "small appliances" or "large home appliances") and the equipment sub-class (ex "mixer"). These will be used to find all objects of a particular class / subclass from the list of global objects.
- allow sorting of global list items by price
- allow sorting of items from the global list after consumption
- Allow display of all objects from a producer
- allow the display of all objects in a subclass - a search after a character string given by the keyboard user
The Large_Appliances Class will inherit the catalog
-at creation the object to request all the attributes of the parent class (catalog) and other attributes: depth, width and height.
The three deep attributes, height and height will populate with text input from the keyboard when running the program (raw_input or input parameter)
The Small_Appliances Class will inherit the catalog
-at creation the object to request all the attributes of the parent class (catalog) and other attributes: cable length and battery
The three string and battery length attributes will populate with text entered from the keyboard when running the program (raw_input or input parameter)
The Refrigerator Class will inherit Large_Appliances
-at creation the object to request all attributes of the grandfather class (catalog) and parent Large_Appliances, but also other attributes: freezer capacity and fridge capacity.
The two attributes freezer_capacity and fridge_capacity will populate with text entered from the keyboard when running the program (raw_input or input parameter)
-Populate the variable of the class called class with the string << Large Appliances >> and the variable of the class called the subclass with the string << Refrigerator >>
The Stove Class will inherit Large_Appliances
-at creation the object is to request all the attributes of the grandfather class (catalog) and parent Large_Appliances, but also attribute burners_number. The parental attribute is populated with text entered from the keyboard when running the program (raw_input or input parameter)
-Populate the variable of the class called class with the string << Large Appliances >> and the variable of the class called the subclass with the string << Stove >>
I couldn't fit everything so i added a word document. Thanks!