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 :"<>make;
        cout<<"The Model of the vehicle :"<>model;
        cout<<"Which year vehicle launched"<>year;
        cout<<"the odometer reading in the vehicle"<>odometer;
        cout<<"Choosen for car \n 1 for Gas Vehicle \n 2 for Diesel Vehicle \n 3 for Electric Vehicle"<>type;
    }
};
class maintenence : public automobile_maintenence
{
    protected:
    int t,c;
    public:
    void checkTireRotaion()
    {
        cout<<"Check Based on Tire Rotation "<=50000)
        {
            cout<<"car tire to want to be service :"<= 400)
            {
                cout<<"The battery charger must be change"<>n;
        switch(n)
        {
            case 1:
            cout<<"GAS type vehicle came to service"<>y;
    switch(n)
{
case 1:
cout<<"thanks for doing service with us "<

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.