Question: (C++ please, simple program) Define a class ElectricVehicle with the following Specification Requirements: Class Interface, Class Implementation *NO COMMENTS REQUIRED Data Members: private: string make;

Data Members: private: string make; Vehicle Make string model; Nehicle Model double driving range; //Driving range in siles double charge_time; //Time it takes to charge Battery, assuming 220V double fuel_cost_equivalent; //Equivalent cost of Gas (cost/gal) bool auto_pilot_available; // Auto Pilot Package available Member Functions: Electricvehicle(string_make = "Tesla", string model = "5", double_driving range = 311.e, double _charge_time = 12., double_fuel_cost_equivalent = 131.2, bool _auto_pilot_avail = true); string getMake() const; string getModel() const; double getDriving Range() const; double getChargeTime() const; double getFuelcost() const; bool isAutoPilotAvail() const; void setMake(string_make); void setModel(string_model); void setDrivingRange(double_range); 11 _range should be me void setCharge Time(double _time); 11 time should be se void setFuelCostEquiv(double_cost); } _cost should be >= void setAutoPilot (bool _auto); void description() const; //Summary of all the data members displayed on screen Use the following Driver to test your Class // Test Class Definition using the following Driver Program int main() //Create an array of 10 Tesla Electric Vehicles: const int NUM_CARS = 10; Electricvehicle fleet = NULL; fleet = new Electricvehicle[NUM_CARS); for(int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
