Question: Using Object-Oriented Programming Paradigm, implement the necessary code in Python to 1) create a Car class with a constructor that stores all the Car information
Using Object-Oriented Programming Paradigm, implement the necessary code in Python to 1) create a Car class with a constructor that stores all the Car information (ID, MAKE, MODEL, YEAR , COLOR, MILEAGE, PRICE_TO_DEALER, SALE_PRICE, PROFIT) as attributes (10 points), and 2) add a method to calculate the profit on each car (10 points).

ID D1010 D1099 D5072 07211 D1329 D4014 D1166 MAKE MODEL Ford Focus Chevrolet Spark Dodge Dart Ford Fiesta Chevrolet Spark Dodge Dart Fiesta Chevrolet Spark Dodge Dart YEAR COLOR MILEAGE PRICE_TO_DEALER SALE_PRICE 2018 Charcoal 65000 5800 6995 2019 Jet Black 64129 6100 6100 2015 Tungsten 98113 8900 11671 2018 Silver 6748 6999 7995 2019 Jet Black 14129 5900 7588 2015 Tungsten 28113 7900 6900 2019 Gold 8748 4999 6995 2017 Caribbean 80044 7200 10999 2018 Blue 68113 4900 6679 Ford D2934 D2542
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
