COMPLETE THE MAIN.CPP AND FEETINCHES.CPP OF THIS CODE (HIGHLITED IN…

Question Answered step-by-step COMPLETE THE MAIN.CPP AND FEETINCHES.CPP OF THIS CODE (HIGHLITED IN… COMPLETE THE MAIN.CPP AND FEETINCHES.CPP OF THIS CODE (HIGHLITED IN BLACK)FeetInche s Class Copy Constructor and multiply Function  Add a copy constructor to the FeetInches class. This constructor should accepta FeetInches object as an argument. The constructor should assign to the feetattribute the value in the argument’s feet attribute, and assign to the inches attributethe value in the argument’s inches attribute. As a result, the new object will be a copyof the argument object. Next, add a multiply member function to the FeetInches class. The multiplyfunction should accept a FeetInches object as an argument. The argument object’sfeet and inches attributes will be multiplied by the calling object’s feet and inchesattributes, and a FeetInches object containing the result will be returned. 1. Redefine relational operators ( >,<,==,!=,==,>=,<=)2. Redefine arithmetic operators.3. Redefine stream operators4. Overloaded constructor functions5. Mutator functions6. Accessories functions • Implement a menu of options and switch/case to demonstrate each of thetheir operations with the given examples.             #ifndef FEETINCHES_H#define FEETINCHES_H// The FeetInches class holds distances or measurements// expressed in feet and inches.class FeetInches{private:int feet; // To hold a number of feetint inches; // To hold a number of inchesvoid simplify(); // Defined in FeetInches.cpppublic: // ConstructorFeetInches(int f = 0, int i = 0){ feet = f;inches = i;simplify();}//Copy ConstructorFeetInches(FeetInches &f){feet = f.feet;inches = f.inches;}//Multiply functionFeetInches multiply(FeetInches right){FeetInches temp;temp.inches = inches * right.inches;temp.feet = feet * right.feet;temp.simplify();return temp;}// Mutator functionsvoid setFeet(int f){ feet = f; }void setInches(int i){ inches = i;simplify(); }// Accessor functionsint getFeet() const{ return feet; }int getInches() const{ return inches; } // Overloaded operator functionsFeetInches operator + (const FeetInches &); // Overloaded +FeetInches operator ? (const FeetInches &); // Overloaded ?}; #endif   Computer Science Engineering & Technology C++ Programming CECS 2222 Share QuestionEmailCopy link Comments (0)