Project 3
#include
using namespace std;
enum type{Gas,Diesel,Electric};
class automobile_maintenence
{
protected:
string make,model;
int year,odometer,type;
public:
automobile_maintenence()
{
cout<<"To the Make of the vehicle :"<
cout<<"The Model of the vehicle :"<
cout<<"Which year vehicle launched"<
cout<<"the odometer reading in the vehicle"<
cout<<"Choosen for car \n 1 for Gas Vehicle \n 2 for Diesel Vehicle \n 3 for Electric Vehicle"<
}
};
class maintenence : public automobile_maintenence
{
protected:
int t,c;
public:
void checkTireRotaion()
{
cout<<"Check Based on Tire Rotation "<
{
cout<<"car tire to want to be service :"<
else
{
t=(50000-odometer);
cout<<"The tire is good condition but after "<
}
void checkchargePower()
{
cout<<"information based on battery charge"<
{
cout<<"The battery charger must be change"<
else
{
c=(400 - odometer);
cout<<"the battery charge is good change but after \n"<
}
};
class car : public automobile_maintenence
{
protected:
int n;
public:
void fun()
{
cout<<"the information based on the customer vehicle: "<
switch(n)
{
case 1:
cout<<"GAS type vehicle came to service"<
case 2:
cout<<"DIESEL type vehicle came to service"<
case 3:
cout<<"ELECTICAL type vehicle came to service"<
default:
cout<<"invalid type of vehicle to select"<
}
}
};
int main()
{
int n;
maintenence m;
car c;
m.checkTireRotaion();
m.checkchargePower();
c.fun();
int y;
cin>>y;
switch(n)
{
case 1:
cout<<"thanks for doing service with us "<
case 2:
cout<<"the list of the inventory details have been uploaded in a proper manner"<
case 3:
cout<<"if you want to add the another vehicle bill means we can add it"<
case 4:
cout<<"the old parts has been replaced with the updated parts in the market"<
case 5:
cout<<"there is no vehicle is added in the list to remove"<
case 6:
cout<<"the rotation is in good condition"<
case 7:
cout<<"the oil tank in the car cleaned completely"<
case 8:
cout<<"as per the customer requirement the battery has changed to new version"<
}
}

