Question: PROGRAMMING LANGUAGE USED IS RUBY (30 pts) In this question, you should create an auto showroom inventory catalogue using Ruby. Your program should read a

 PROGRAMMING LANGUAGE USED IS RUBY (30 pts) In this question, you

should create an auto showroom inventory catalogue using Ruby. Your program should

PROGRAMMING LANGUAGE USED IS RUBY

(30 pts) In this question, you should create an auto showroom inventory catalogue using Ruby. Your program should read a car listings file which contains all available inventory details where each line contains the following 11 listing features #km, type, transmission, stock, Drivetrain, Status, Fuel Economy, carmaker, model, year, Trim,set of features examples of listing lines as follows 65101km,Sedan,Manual, 18131A,FWD,Used,5.5L/100km,Toyota,camry,SE,(AC, Heated Seats, Heated Mirrors, Keyless Entry),2010 coupe,1100km,auto,RWD, Mercedec,CLK,LX,18FO724A,2017, (AC, Heated Seats, Heated Mirrors, Keyless Entry, Power seats),6L/100km,Used AWD,SUV,0km,auto.new,Honda,CRV.LE,19BF723A,8L/100km,2018, (Heated Seats, Heated Mirrors, Keyless Entry; Note: order of listing features varies from one line to another as it was entered by employees not trained for proper data entry. Also, assume the following listing feature sible values (case insensitive) Listing features Values Kilometers followed by "km" Sedan, coupe, hatchback, station, SUV Transmission stock# Drivetrain Status Fuel EconomySimilar to: 5.5L/100km format Auto, manual, ste nic Combination of letters and numbers NOT ending with "km" FWD.RWD.AWD Used, new car maker Honda, Toyota, Mercedes, BMW, Lexus Model Year Trim set of featuresAny set of features inside curly parenthesis Any text that doesn't match any of the other criteria in this table Any vear any two letters acron Your program should have four methods as follows convertListings2Catalougue: a method that o reads the listings file line by line o correctly recognizes and extracts different listing features instantiates appropriate objects of different classes and subclasses that you should define to hold the listing information for different car makers, their models and trim lines available in our listings. Any parent class should have properties that count the number of listings of that maker or that o (30 pts) In this question, you should create an auto showroom inventory catalogue using Ruby. Your program should read a car listings file which contains all available inventory details where each line contains the following 11 listing features #km, type, transmission, stock, Drivetrain, Status, Fuel Economy, carmaker, model, year, Trim,set of features examples of listing lines as follows 65101km,Sedan,Manual, 18131A,FWD,Used,5.5L/100km,Toyota,camry,SE,(AC, Heated Seats, Heated Mirrors, Keyless Entry),2010 coupe,1100km,auto,RWD, Mercedec,CLK,LX,18FO724A,2017, (AC, Heated Seats, Heated Mirrors, Keyless Entry, Power seats),6L/100km,Used AWD,SUV,0km,auto.new,Honda,CRV.LE,19BF723A,8L/100km,2018, (Heated Seats, Heated Mirrors, Keyless Entry; Note: order of listing features varies from one line to another as it was entered by employees not trained for proper data entry. Also, assume the following listing feature sible values (case insensitive) Listing features Values Kilometers followed by "km" Sedan, coupe, hatchback, station, SUV Transmission stock# Drivetrain Status Fuel EconomySimilar to: 5.5L/100km format Auto, manual, ste nic Combination of letters and numbers NOT ending with "km" FWD.RWD.AWD Used, new car maker Honda, Toyota, Mercedes, BMW, Lexus Model Year Trim set of featuresAny set of features inside curly parenthesis Any text that doesn't match any of the other criteria in this table Any vear any two letters acron Your program should have four methods as follows convertListings2Catalougue: a method that o reads the listings file line by line o correctly recognizes and extracts different listing features instantiates appropriate objects of different classes and subclasses that you should define to hold the listing information for different car makers, their models and trim lines available in our listings. Any parent class should have properties that count the number of listings of that maker or that o

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!