#include//library
using namespace std;
enum Type{GAS,DIESEL,ELECTRIC};//enum type list for the vechile
class automobile_maintenance//main class for the automobile maintenance
{
protected://it is a protected function in class
string make,model;
int year,odometer,type;
public://used to access the protected in main class
automobile_maintenance()//constructor details of the vehicles
{
cout<<"the make of the vehicle"<>make;
cout<<"the model of the vechical"<>model;
cout<<"the manufacturing year of vehicle"<>year;
cout<<"the odometer reading in the vehicle"<>odometer;
cout<<"the VEHICLE TYPE to choose\n choose 0 for GAS type\n choose 1 for DIESLE type choose 2 for ELECTRIC type"<>type;
}
};
class maintenance : public automobile_maintenance
{ protected://it is a protected function in class
int t,c;
public://used to access the protected in main class
void checkTireRotation()//constructor details of the vehicles
{
cout<<"the information based on the tire rotation is: "<= 50000)
{
cout<<"the car tire must be changed the life time is over"<= 400)
{
cout<<"the battery must need be changed"<>n;
switch(n)
{
case 0:
cout<<"GAS type vehicle came to service"<>y;
switch(n)
{
case 0:
cout<<"thanks for doing service with us "<