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
PayPal Gateway not configured
PayPal Gateway not configured