Challenge

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 :"< cin>>make;
cout<<"The Model of the vehicle :"< cin>>model;
cout<<"Which year vehicle launched"< cin>>year;
cout<<"the odometer reading in the vehicle"< cin>>odometer;
cout<<"Choosen for car \n 1 for Gas Vehicle \n 2 for Diesel Vehicle \n 3 for Electric Vehicle"< cin>>type;
}
};
class maintenence : public automobile_maintenence
{
protected:
int t,c;
public:
void checkTireRotaion()
{
cout<<"Check Based on Tire Rotation "< if(odometer >=50000)
{
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"< if(odometer >= 400)
{
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: "< cin>>n;
switch(n)
{
case 1:
cout<<"GAS type vehicle came to service"< cout<<"it runs in liquidfied gas"< break;
case 2:
cout<<"DIESEL type vehicle came to service"< cout<<"it runs in liquid petrolium"< break;
case 3:
cout<<"ELECTICAL type vehicle came to service"< cout<<"it runs in rechargeable battery"< break;
default:
cout<<"invalid type of vehicle to select"< break;
}
}
};
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 "<cout<<"have a safe journey"<break;
case 2:
cout<<"the list of the inventory details have been uploaded in a proper manner"<cout<<"the list has been got approved from RTO"<break;
case 3:
cout<<"if you want to add the another vehicle bill means we can add it"<cout<<"you said no need ok"<break;
case 4:
cout<<"the old parts has been replaced with the updated parts in the market"<cout<<"its an wonderful update in the year"<break;
case 5:
cout<<"there is no vehicle is added in the list to remove"<break;
case 6:
cout<<"the rotation is in good condition"<cout<<"there is no need to change the tire"<break;
case 7:
cout<<"the oil tank in the car cleaned completely"<cout<<"the new oil is filled in the tank"<break;
case 8:
cout<<"as per the customer requirement the battery has changed to new version"<cout<<"the battery recharged fully and it has 2 year life time"<break;
}
}

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.