Question: programming language python new onesuch better Lab Task Maybe you feel sorry for your old Furniture - it's a lovely thing to own. And thanks

 programming language python new onesuch better Lab Task Maybe you feel
sorry for your old Furniture - it's a lovely thing to own.
And thanks to Swedish-based IKEA, lamp That's because you're crary The lamp
has no feelings And this it's now more affordable than ever to
own a bunch of truly midrange furniture. We want to write an
programming language python

new onesuch better Lab Task Maybe you feel sorry for your old Furniture - it's a lovely thing to own. And thanks to Swedish-based IKEA, lamp That's because you're crary The lamp has no feelings And this it's now more affordable than ever to own a bunch of truly midrange furniture. We want to write an inventory program to list some of their quality merchandise! To do this, we want to create a Furniture object. This represents any iter at IKEA. Every IKEA product has a base type, an article number, a price, a Swedish-sounding name, a basic description, and optionally, a colour (or blank if there is no colour). Furniture objects should have the ability to store this. Furniture should, of course, be functionally abstract (that is, it would make no sense to instantiate a Furniture object, as it doesn't have all the code needed to make it actually work-it is simply a parent class). It needs an accessor and mutator for the price only We then want to be able to represent subcategories of their products that we would use in a bedroom (rather than everything they makel) These subcategories should extend that is inherit from) Furniture A Bed also has a length, a width a footboard height, and a headboard height. These will be expressed in cm A Nightstand also has width, depth and height, all in cm. An Armchair is their word for a chair, whether it has arms or not. These also have a width depth, and height, seat width, seat depth, and seat height, all in cm. A Floor Lamp also has a maximum wattage in watts), a height, shade diameter, and cord length. Height and shade diameter are in cm, cord length is in m. You'll note the 'also in each of these. This means that they inherit everything that Furniture has, but they will define more things behaviours, Instance variables specific to the object in question You don't have to make accessors and mutators for the subclasses - this will save you time, as the product descriptions are fixed. You will have to make a constructor that can take all these parameters, though. You will need to write a str_magic method for each object. Read the data from the file ikea.txt - the first item on each row tells you the type of object to be created a single letter), and the rest are parameters as listed above. Have a look at the data and beyou understand the format o pruuuuuupa AUTO TVD WOULUTUS WE GEELONG GRUOGO parameters, though. You will need to write a _str_magic method for each object. Read the data from the file ikea.txt - the first item on each row tells you the type of object to be created a single letter), and the rest are parameters as listed above. Have a look at the data file and be sure you understand the format. 1. Read the data, create the specified object, and place it into a list of Fumiture. Repeat for each item in the data file. 2. Then, print out each object in the list, and print out the total value of the inventory. The data file will be supplied in this case for you to view. You do NOT need to put that data file anywhere in the Moodle CodeRunner question. It already has it - it's just for your reference Hints: Furniture should store its data in fully private variables. Furniture should have a_str_method to return its data. . Subclasses of Furniture must also take, in their _init__(constructor methods), the parameters used by Furniture. The first line of a subclass constructor must therefore be super.init(parameters for Furniture) where you insert the parameters you're passing to Furniture The subclasses will also take additional information and store them in their own fully private variables. The subclasses will also have str_magic methods - these can call on the parent (Furniture) _str_method with supero...str_0 to return part of the String, and save you from having to retype the content generated by the_str_method of the parent If you look at similarities between some of the subclasses, you'll quickly realize that, after writing the Armchair class, the Nightstand class could be done very quickly with copy and paste, and some editing Assume all numbers could have fractional components, including any dimensions, prices, etc. . Do not worry about using dollar signs (5) in the price outputs. Just format them to two decimal places Sample output: Type Florian Nand: BOLMO Art lele. 301.341.73 Prict 9.99 Deseription Floor Lamp - gives a soft mood Light Colour one Wattage: 75.00 Height : 116.00 Shade biometrs 22.00 Cerd Length: 2.20 Type Florian Manet MILTONI Articles 703.067.29 Price: 69.99 Description Yloor/reading lang Colour nickel plated Wattage: 6.30 Height: 180.00 Shade Diameter: 24.00 Cord Length: 2.50 Type Floor Lamp Nase: SAMTID Articles 302.865.69 Price: 49.99 Description Fico/reading lamp Colour nickel plated/white Wattage: 100.00 Height: 157.00 Shade biter 25.00 Cord Length: 3.50 TypeFloor clamp Name YPPERLIG Articles 90.48.97 Price: 79.99 Description floor lamp Colour dark gray Wattage 7.00 Reight 122.00 Shade biter 15.00 Cord Length 3.50 Typearchi I WOLTA Articles 102.33.32 Price: 49.00 Description Alesh chat Colour black/black Width 1.00 Depth: 18.00 Helyt: 75.00 Width 5.00 test sete 10.00 LED c. reth 68.00 75 116 22 22 6.3 180 24 2.5 100 152 25 3.5 dark gray 7 122 15 3.5 64 75 75 59 46 40 75 44 47 34 62 68 68 82 100 56 60 42 ikea F 301.841.73 9.99 HOLMO Floor lamp - gives a soft mood light "none" F 703.047.29 69.99 ANTIFONI Floor/reading lamp nickel plated F 902.865.69 49.99 SAMTID Floor/reading lamp nickel plated/white F 903.498.97 79.99 YPPERLIG LED floor lamp A 102.335.32 49.00 NOLMYRA Armloss mesh chair black/black A 500.395.52 69.99 IKEA PS GULLHOLMEN Rocking chair banana fibro A 991.256.71 99.00 POANG Armchair - birch veneer Ransta red A 403.424.88 199.00 VEDBO Armchair Gunnared dark gray N 702.155.25 19.99 NESNA Nighstand bamboo N 443.611.09 19.99 RAST Nightstand pino N 603.221.30 39.99 KULLEN 2 Drawer Chest black-brown N 602 30024 59.99 TRYSIL Nighstand dark brownvoick B 190.098.21 99.00 FJELLSE Bed frame Luroy pine 0 400.075.86 170.00 BRUSALI Bod frame Luroy brown B 290.077 94 189.00 TARVA Bed frame Luroy pine B 090.078.13 199.00 TRYSIL Bod frame Luroy dark brown 75 73 65 45 48 44 36 35 45 52 30 40 35 40 45 40 53 197 142 33 80 208 198 46 93 209 160 32 92 220 157 40 98 Typer Bed Nanet TJELLSE Artele: 190.098.21 Price: 99.00 Description: Bed Frame Colouri Lurdy pin Length: 197.00 Width: 142.00 Headboard height: 80.00 Footboard Height: 53.00 Type: Bed Name BRUSALI Artiele: 490.075.66 Price 179.00 Description Bed Frame Colour Leroy brown Length: 208.00 Width 198.00 Headboard height: 93.00 Footboard Height: 46.00 Type: Bed Name: TARVA Article 290.077.94 Price: 189.00 Description Bed Frame Colouri Luroy pine Length: 209.00 Width 160.00 Headboard height: 92.00 Footboard Height: 32.00 Type: Bed Name! CRYSIL Article 090.078.13 Price 199.00 Description Bed Crane Colouri Lurby dark brown Length: 220.00 Width: 157.00 Headboard height 98.00 Footboard Weights 40.00 Total Inventory Value 1432.91

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!