Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 233 Weeks Ago, 4 Days Ago |
Questions Answered: | 12843 |
Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
Write the header file Car.h for the Car class. The Car class has three data members: miles_per_gallon (double), fuel (double), and model (string). The Car class has a constructor that initializes each data member. The Car class has four additional member functions:
·      get_model : no parameters, returns model
·      drive : double miles parameter, returns nothing
·      add_fuel : double gallons parameter, returns nothing
·      low_on_fuel : no parameters, returns true or false
Do not provide the implementation of the member functions.Â
-----------