Course Solutions Uncategorized (Solved) : Hello Need Help C Assignment Requires Modification Given Code Include Include Include Usin Q35750106 . . . .

(Solved) : Hello Need Help C Assignment Requires Modification Given Code Include Include Include Usin Q35750106 . . . .

 

Hello, I need help with a C++ assignment. It requiresmodification of the given code:

#include <iostream>
#include <fstream>
#include <cstdlib>

using namespace std;

enum Kind
{
    business, maintenance, other, box, tank, flat,otherFreight, chair, sleeper, otherPassenger
};

const string KIND_ARRAY[] = {
    “business”, “maintenance”, “other”, “box”,”tank”, “flat”, “otherFreight”, “chair”, “sleeper”,”otherPassenger”
};

class Car
{
    protected:
        stringreportingMark;
        int carNumber;
        Kind kind;
        bool loaded;
        stringdestination;
    public:
        Car(){setup(“”, 0,”other”, false, “NONE”);}
        Car(const Car&obj){setup(obj.reportingMark, obj.carNumber,KIND_ARRAY[obj.kind], obj.loaded, obj.destination);}
        Car(string rM, int cN,string k, bool l, string d){setup(rM, cN, k, l, d);}
        ~Car(){}
        void setup(stringreportingMark, int carNumber, string kind, bool loaded, stringdestination);
        void output();
        friend booloperator==(const Car &left, const Car &right);
        Car &operator=(constCar & carB);
        void setKind(conststring& k);
};

class

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Complete Lad Worksnee B Create Floorclientjava Main Method Onty C Create Floorjava First Q35532291 . . . .(Solved) : Complete Lad Worksnee B Create Floorclientjava Main Method Onty C Create Floorjava First Q35532291 . . . .

java<br/><img src="https://media.cheggcdn.com/media%2F259%2F259ba8aa-f125-4f22-a0bf-cbc42536f7bb%2Fimage.png" alt="a. Complete laD Worksnee b. Create FloorClient.java with main method onty c. Create Floor.java with the first method you woul" aria-describedby="d3f"/><img src="https://media.cheggcdn.com/media%2F802%2F80246209-c0e4-4763-a25b-3a24f51c5dcb%2Fimage.png" alt="CSC 15 Chapter 3 lab Before