hello below this statement i will include 4 header file and theirrespective cpp file 5122395

Hello, Below this statement, I will include 4 header file and theirrespective cpp files. My program runs now yet I need your help inimplementing Menu Options: # 2(Area/Perimeter),  Options: # 3 (Persceptives), Options:# 4 (Comparing) , Options: # 5 (Displaying). The program promts theuser to enter the upperleft hand point which whill determine thequadrant of the rectangle. The user would also input the length andwidth thus completing the rectangle#1. A rectangle#2 would also becreated for the Persceptives menu. These rectangles are coordinatedon a xy plane and their respective area would determine if they aredisjoined, intersecting, or enclosed in one another. The user willenter the length and width and the upper left hand point of eachrectangle of which their are two. The comparing submenu determinesthe greater of area and perimeter. Finally the displaying willprint each respective rectangle coordinates. As of now, my programsruns, just dont update the second rectangle after its been created.I need your help in getting the above mentioned implemented, thatis calling the functions from rectangle utilityfile. Thank you. #ifndef HW6FRACTIONTAMEEMB_H #define HW6FRACTIONTAMEEMB_H #include using namespace std; class FractionTameemB { public: FractionTameemB(); FractionTameemB(int); FractionTameemB(int, int); FractionTameemB(const FractionTameemB&); ~FractionTameemB(); void setNum(int); int getNum(void) const { return num; } void setDenom(int); int getDenom(void) const { return denom; } void print(void) const; void update(int, int); FractionTameemB sqrd(void); FractionTameemB sqrt(void); FractionTameemB operator=(const FractionTameemB&); FractionTameemB operator+(const FractionTameemB&) const; FractionTameemB operator-(const FractionTameemB&) const; FractionTameemB operator*(const FractionTameemB&) const; FractionTameemB operator/(const FractionTameemB&) const; bool operator==(const FractionTameemB& that); bool operator!=(const FractionTameemB& that); bool operator<=(const FractionTameemB& that); bool operator>=(const FractionTameemB& that); bool operator<(const FractionTameemB& that); bool operator>(const FractionTameemB& that); bool operator<(int) const; bool operator>(int) const; bool operator<=(int) const; bool operator>=(int) const; bool operator==(int) const; FractionTameemB getAbsFraction(const FractionTameemB&that); FractionTameemB getAbsFraction(); friend ostream& operator<<(ostream&, const FractionTameemB&); friend istream& operator>>(istream& is, const FractionTameemB& that); private: int num; int denom; int gcdBF(int, int); }; #endif #include #include “HW6fractionTameemB.h” using namespace std; FractionTameemB::FractionTameemB() : num(0), denom(1) {} FractionTameemB::FractionTameemB(int n) : num(n), denom(1){} FractionTameemB::FractionTameemB(int n, int d) { int gcd = 1; if (d == 0) { do { cout << “n Cannot be zero!” << “n Enter a new denominator: “; cin >> d; } while (d == 0); } if (d < 0) { n = -n; d = -d; } gcd = gcdBF(n, d); num = n / gcd; denom = d / gcd; } FractionTameemB::FractionTameemB(const FractionTameemB&that) { num = that.num; denom = that.denom; } FractionTameemB::~FractionTameemB() { }; void FractionTameemB::setNum(int n) { int gcd; gcd = gcdBF(n, denom); num = n / gcd; denom /= gcd; } void FractionTameemB::setDenom(int d) { int gcd; if (d < 0) { num = -num; d = -d; } gcd = gcdBF(num, d); num /= gcd; denom = d / gcd; } int FractionTameemB::gcdBF(int arg1, int arg2) { int gcd = 1; arg1 = (arg1 < 0) ? -arg1 : arg1; arg2 = (arg2 < 0) ? -arg2 : arg2; for (int i = 2; i <= arg1 && i <= arg2; i++) { if (arg1 % i == 0 && arg2 % i == 0) { gcd = i; } } return gcd; } void FractionTameemB::update(int n, int d) { int gcd; if (d < 0) { n = -n; d = -d; } gcd = gcdBF(n, d); num = n / gcd; denom = d / gcd; } void FractionTameemB::print() const { cout << “n num : ” << num << “n denom : ” << denom << endl; } FractionTameemB FractionTameemB::sqrd() { return FractionTameemB(num*num, denom*denom); } FractionTameemB FractionTameemB::sqrt() { double tmpNum = num / denom; double tmp; double tmpRoot = tmpNum / 2; do { tmp = tmpRoot; tmpRoot = (tmp + (tmpNum / tmp)) / 2; } while ((tmp – tmpRoot) != 0); return FractionTameemB(tmpRoot * 10, 10); } FractionTameemB FractionTameemB::getAbsFraction(constFractionTameemB& fr) { fr.num < 0 ? num = -fr.num : num = fr.num; return *this; } FractionTameemB FractionTameemB::getAbsFraction() { num < 0 ? num = -num : num; return *this; } FractionTameemB FractionTameemB::operator=(constFractionTameemB& rFr) { num = rFr.num; denom = rFr.denom; return *this; } FractionTameemB FractionTameemB::operator+(constFractionTameemB& rFr) const { return FractionTameemB(num * rFr.denom + rFr.num * denom, denom * rFr.denom); } FractionTameemB FractionTameemB::operator-(constFractionTameemB& rFr) const { return FractionTameemB(num * rFr.denom – rFr.num * denom, denom * rFr.denom); } FractionTameemB FractionTameemB::operator*(constFractionTameemB& rFr) const { return FractionTameemB(num * rFr.num, denom * rFr.denom); } FractionTameemB FractionTameemB::operator/(constFractionTameemB& rFr) const { return FractionTameemB(num * rFr.denom, denom * rFr.num); } bool FractionTameemB::operator==(const FractionTameemB& rPt){ if (num / denom == rPt.num / rPt.denom) return true; return false; } bool FractionTameemB::operator!=(const FractionTameemB& rPt){ if (num / denom != rPt.num / rPt.denom) return true; return false; } bool FractionTameemB::operator<=(const FractionTameemB&rPt) { if (num / denom <= rPt.num / rPt.denom) return true; return false; } bool FractionTameemB::operator>=(const FractionTameemB&rPt) { if (num / denom >= rPt.num / rPt.denom) return true; return false; } bool FractionTameemB::operator<(const FractionTameemB&rPt) { if (num / denom < rPt.num / rPt.denom) return true; return false; } bool FractionTameemB::operator>(const FractionTameemB&rPt) { if (num / denom > rPt.num / rPt.denom) return true; return false; } bool FractionTameemB::operator<(int numb) const { if (num < numb * denom) return true; return false; } bool FractionTameemB::operator>(int numb) const { if (num > numb * denom) return true; return false; } bool FractionTameemB::operator<=(int numb) const { if (num <= numb * denom) return true; return false; } bool FractionTameemB::operator>=(int numb) const { if (num >= numb * denom) return true; return false; } bool FractionTameemB::operator==(int numb) const { if (num == numb * denom) return true; return false; } ostream& operator<<(ostream& os, constFractionTameemB& that) { os << “n num : ” << that.num << “n denom : ” << that.denom << endl; return os; } istream& operator>>(istream& is, constFractionTameemB& that) { is >> that.num; is >> that.denom; return is; } #ifndef HW6POINTTAMEEMB_H #define HW6POINTTAMEEMB_H #include #include “HW6fractionTameemB.h” using namespace std; class PointTameemB { public: PointTameemB(); PointTameemB(const FractionTameemB&); PointTameemB(const FractionTameemB&, constFractionTameemB&); PointTameemB(const PointTameemB&); ~PointTameemB(); int getQuadrant(void); int getQuadrant(const PointTameemB&); void moveBy(const FractionTameemB&, constFractionTameemB&); void moveBy(const FractionTameemB&); void flipByX(void); void flipByY(void); void flipThroughOrigin(void); void print(void) const; void update(const FractionTameemB&, constFractionTameemB&); FractionTameemB getDistance(const PointTameemB&, constPointTameemB&); void setX(const FractionTameemB&); FractionTameemB getX(void) const { return *xPtr; } void setY(const FractionTameemB&); FractionTameemB getY(void) const { return *yPtr; } PointTameemB operator=(const PointTameemB& that); PointTameemB operator+(const PointTameemB& that); PointTameemB operator-(const PointTameemB& that); bool operator==(const PointTameemB& that); bool operator!=(const PointTameemB& that); bool operator<(const PointTameemB& that); bool operator>(const PointTameemB& that); friend ostream& operator<<(ostream&, constPointTameemB&); friend istream& operator>>(istream&, const PointTameemB&); private: FractionTameemB *xPtr; FractionTameemB *yPtr; }; #endif #include #include “HW6fractionTameemB.h” #include “HW6pointTameemB.h” using namespace std; PointTameemB::PointTameemB() :xPtr(new FractionTameemB()),yPtr(new FractionTameemB()) { } PointTameemB::PointTameemB(const FractionTameemB& fr) :xPtr(new FractionTameemB(fr)), yPtr(new FractionTameemB(fr)) { } PointTameemB::PointTameemB(const FractionTameemB& delX, const FractionTameemB& delY) : xPtr(newFractionTameemB(delX)), yPtr(new FractionTameemB(delY)) { } PointTameemB::PointTameemB(const PointTameemB& that) :xPtr(that.xPtr), yPtr(that.yPtr) {} PointTameemB::~PointTameemB() { cout << “n Calling ~PointTameemB()n” << *this; delete xPtr; xPtr = nullptr; delete yPtr; yPtr = nullptr; } int PointTameemB::getQuadrant() { int quadTB; if (0 < xPtr->getNum()) { if (0 < yPtr->getNum()) { quadTB = 1; } else if (0 > yPtr->getNum()) { quadTB = 4; } else { quadTB = 5; } } else if (0 > xPtr->getNum()) { if (0 < yPtr->getNum()) { quadTB = 2; } else if (0 > yPtr->getNum()) { quadTB = 3; } else { quadTB = 7; } } else { if (0 < yPtr->getNum()) { quadTB = 6; } else if (0 > yPtr->getNum()) { quadTB = 8; } else { quadTB = 0; } } return quadTB; } int PointTameemB::getQuadrant(const PointTameemB& p) { int quadTB; if (xPtr->getNum() * p.xPtr->getDenom() > p.xPtr->getNum() * xPtr->getDenom()) { if (yPtr->getNum() * p.yPtr->getDenom() > p.yPtr->getNum() * yPtr->getDenom()) { quadTB = 1; } else if (yPtr->getNum() * p.yPtr->getDenom() < p.yPtr->getNum() * yPtr->getDenom()) { quadTB = 4; } else { quadTB = 5; } } else if (xPtr->getNum() * p.xPtr->getDenom() < p.xPtr->getNum() * xPtr->getDenom()) { if (yPtr->getNum() * p.yPtr->getDenom() > p.yPtr->getNum() * yPtr->getDenom()) { quadTB = 2; } else if (yPtr->getNum() * p.yPtr->getDenom() < p.yPtr->getNum() * yPtr->getDenom()) { quadTB = 3; } else { quadTB = 7; } } else { if (yPtr->getNum() * p.yPtr->getDenom() > p.yPtr->getNum() * yPtr->getDenom()) { quadTB = 6; } else if (yPtr->getNum() * p.yPtr->getDenom() < p.yPtr->getNum() * yPtr->getDenom()) { quadTB = 8; } else { quadTB = 0; } } return quadTB; } void PointTameemB::moveBy(const FractionTameemB& delX, const FractionTameemB& delY) { *xPtr = *xPtr + delX; *yPtr = *yPtr + delY; } void PointTameemB::moveBy(const FractionTameemB& intXY){ *xPtr = *xPtr + intXY; *yPtr = *yPtr + intXY; } void PointTameemB::flipByX() { xPtr->setNum(xPtr->getNum() * -1); } void PointTameemB::flipByY() { yPtr->setNum(yPtr->getNum() * -1); } void PointTameemB::flipThroughOrigin() { xPtr->setNum(xPtr->getNum() * -1); yPtr->setNum(yPtr->getNum() * -1); } void PointTameemB::print() const { cout << “n X :” << xPtr->getNum() << “/” << xPtr->getDenom() << “n Y :” << yPtr->getNum() << “/” << yPtr->getDenom() << endl <

(const PointTameemB& rPt){ if (xPtr > rPt.xPtr && yPtr > rPt.yPtr) return true; return false; } ostream& operator<<(ostream& out, constPointTameemB& p) { cout << “n X :” << p.xPtr->getNum() << “/” << p.xPtr->getDenom() << “n Y :” << p.yPtr->getNum() << “/” << p.yPtr->getDenom() << endl; return out; } istream& operator>>(istream& is, constPointTameemB& that) { is >> *that.xPtr; is >> *that.yPtr; return is; } #ifndef RECTANGLETAMEEMB_H #define RECTANGLETAMEEMB_H #include #include “HW6fractionTameemB.h” #include “HW6pointTameemB.h” using namespace std; class RectangleTameemB { public: RectangleTameemB(void); RectangleTameemB(int, int, int, int, int, int, int, int); RectangleTameemB(const PointTameemB& ul, constFractionTameemB& len, const FractionTameemB& wid); RectangleTameemB(const RectangleTameemB& that); ~RectangleTameemB(); void update(const PointTameemB&, const FractionTameemB&,const FractionTameemB&); FractionTameemB compDis(const RectangleTameemB&); FractionTameemB compArea(void) const; FractionTameemB compPerimeter(void) const; void setul(const PointTameemB&); PointTameemB getul(void) const; void setlen(const FractionTameemB&); FractionTameemB getlen(void) const; void setwid(const FractionTameemB&); FractionTameemB getwid(void) const; friend ostream& operator<<(ostream&, constRectangleTameemB&); friend istream& operator>>(istream&, constRectangleTameemB&); private: PointTameemB * ul; FractionTameemB *len; FractionTameemB *wid; }; #endif #include #include “rectangleTameemB.h” #include “HW6pointTameemB.h” #include “HW6fractionTameemB.h” using namespace std; RectangleTameemB::RectangleTameemB() : ul(newPointTameemB()), len(new FractionTameemB()), wid(new FractionTameemB()) { } RectangleTameemB::RectangleTameemB(int xNum, int xDenom, intyNum, int yDenom , int lNum, int lDenom, int wNum, int wDenom) : ul(newPointTameemB(FractionTameemB(xNum, xDenom), FractionTameemB(yNum, yDenom))), len(new FractionTameemB(lNum,lDenom)), wid(new FractionTameemB(wNum, wDenom)) { } RectangleTameemB::RectangleTameemB(const PointTameemB&point, const FractionTameemB& l, const FractionTameemB& w) : ul(new PointTameemB(point)), len(new FractionTameemB(l)),wid(new FractionTameemB(w)) {} //RectangleTameemB::RectangleTameemB(const PointTameemB&point, // const FractionTameemB& l, const FractionTameemB& w): // ul(new PointTameemB(point)), len(new FractionTameemB(l)),wid(new FractionTameemB(w)) { // cout << “nCalling CircleJustinL(constPointJustinL& point,” // ” const FractionJustinL& r)”; //} RectangleTameemB::RectangleTameemB(const RectangleTameemB&that) : ul(that.ul) { cout << “nCalling RectangleTameemB(const Rectangle&that)”; } RectangleTameemB::~RectangleTameemB() { if (ul != nullptr) { delete ul; ul = nullptr; } if (len != nullptr) { delete len; len = nullptr; } if (wid != nullptr) { delete wid; wid = nullptr; } } void RectangleTameemB::update(const PointTameemB& ulPt,const FractionTameemB& lFr, const FractionTameemB& wFr){ cout << “nCalling update”; *ul = ulPt; *len = lFr; *wid = wFr; } FractionTameemB RectangleTameemB::compDis(constRectangleTameemB& that) { FractionTameemB distance; distance = ((ul->getX() – that.ul->getX()).sqrd() + (ul->getY() – that.ul->getY()).sqrd()); distance = distance.sqrt(); return distance; } FractionTameemB RectangleTameemB::compArea() const { return FractionTameemB(*len * *wid); } FractionTameemB RectangleTameemB::compPerimeter() const { return FractionTameemB(*len * *wid) * (*len * *wid); } void RectangleTameemB::setul(const PointTameemB& that) { *ul = that; } PointTameemB RectangleTameemB::getul(void) const { return *ul; } void RectangleTameemB::setlen(const FractionTameemB& that){ *len = that; } FractionTameemB RectangleTameemB::getlen() const { return *len; } void RectangleTameemB::setwid(const FractionTameemB& that){ *wid = that; } FractionTameemB RectangleTameemB::getwid() const { return *wid; } ostream& operator<<(ostream& out, constRectangleTameemB& c) { out << “n length: ” << *c.len << “n width: ” << *c.wid << endl; return out; } istream& operator>>(istream& is, constRectangleTameemB& c) { is >> *c.len; is >> *c.wid; return is; } #ifndef RECTANGLEUTILITYTAMEEMB_H

#define RECTANGLEUTILITYTAMEEMB_H

#include “rectangleTameemB.h” void displayClassInfo(void);

void useMenuHw6(void);

void useMenuInit(RectangleTameemB**, RectangleTameemB**,RectangleTameemB**);

void findPositionTameemB(const RectangleTameemB&, constRectangleTameemB&, FractionTameemB&);

void useMenuAP(RectangleTameemB**, RectangleTameemB**,RectangleTameemB**);

void useMenuPerp(RectangleTameemB**, RectangleTameemB**,RectangleTameemB**);

void useMenuComparing(RectangleTameemB**,RectangleTameemB**);

void useMenuDisplaying(RectangleTameemB**,RectangleTameemB**);

//void useMenuPrint()

//void useMenuMoveTameemB(RectangleTameemB*);

//void findPostionTameemB(const RectangleTameemB&, constRectangleTameemB&,

//RectangleTameemB&); #endif #include #include “HW6fractionTameemB.h” #include “HW6pointTameemB.h” #include “rectangleTameemB.h” #include “rectangleUtilityTameemB.h” using namespace std; void displayClassInfo() { cout << “CIS 25 – C++ Programmingn” “Laney Collegen” “Tameem Bnn” “Assignment Information –n” ” Assignment Number: Homework 06,n” ” Exercise #1n” ” Written by: Tameem Bn” ” Submitted Date: 2018/05/15″ << endl; } void useMenuHw6() { int optionValue; RectangleTameemB* rec1Ptr = nullptr; RectangleTameemB* rec2Ptr = nullptr; RectangleTameemB* resultPtr = nullptr; do { cout << “nn” “************************************n” “* MENU – HW #6 *n” “* 1. Initializing (2 Rectangles) *n” “* 2. Area/Perimeter *n” “* 3. Persceptives *n” “* 4. Comparing *n” “* 5. Displaying *n” “* 6. Quit *n” “************************************n” “Select an option (use integer value only): “; cin >> optionValue; if ((optionValue > 1 && optionValue < 6)&& (resultPtr == nullptr) && (rec1Ptr == nullptr || rec2Ptr != nullptr)) { resultPtr = new RectangleTameemB(); } switch (optionValue) { case 1: cout << “n INITIALIZING Option –” << endl; useMenuInit(&rec1Ptr, &rec2Ptr, &resultPtr); break; case 2: if (rec1Ptr == nullptr && rec2Ptr == nullptr) { cout << “n Not a proper call no Rectangles are avaiable!”<< endl; } else { useMenuAP(&rec1Ptr, &rec2Ptr, &resultPtr); } break; case 3: if (rec1Ptr == nullptr && rec2Ptr == nullptr) { cout << “n Not a proper call no Rectangles are avaiable!”<< endl; } else { useMenuPerp(&rec1Ptr, &rec2Ptr, &resultPtr); } break; /* if (circle1Ptr != nullptr && circle2Ptr != nullptr){ cout << “n Moving Option –“ << “n Which Circle to be moved (1 or 2)? “; cin >> optionValue; if (optionValue != 1 && optionValue != 2) { do { cout << “n Wrong Option!” “n Which Point to be moved (1 or 2)? “; cin >> optionValue; } while (optionValue != 1 && optionValue != 2); } if (optionValue == 1) { useMenuMoveJustinL(circle1Ptr); } if (optionValue == 2) { useMenuMoveJustinL(circle2Ptr); } } else { cout << “n Not a proper call as no Circles areavailable!”; } break; */ case 4: if (rec1Ptr == nullptr && rec2Ptr == nullptr) { cout << “n Not a proper call no Rectangles are avaiable!”<< endl; } else { useMenuComparing(&rec1Ptr, &rec2Ptr); } break; /* cout << “n Comparing Area of Circles “; if (circle1Ptr->computeArea() computeArea()) { cout << “n The Area of Circle 2 is Larger than Circle1”; } else if (circle1Ptr->computeArea() >circle2Ptr->computeArea()) { cout << “n The Area of Circle 1 is Larger than Circle2”; } else { cout << “n The Area of Circle 1 Circle 2 are theSame”; } break; */ case 5: if (rec1Ptr == nullptr && rec2Ptr == nullptr) { cout << “n Not a proper call no Rectangles are avaiable!”<< endl; } else { useMenuDisplaying(&rec1Ptr, &rec2Ptr); } break; case 6: cout << “n Having fun …!” << endl; break; //case 7: // distJL = &circle1Ptr->getRadJL().sqrt(); // cout << *distJL; // break; default: cout << “n WRONG OPTION!” << endl; } } while (optionValue != 6); if (rec1Ptr != nullptr) { delete rec1Ptr; rec1Ptr = nullptr; } if (rec2Ptr != nullptr) { delete rec2Ptr; rec2Ptr = nullptr; } // if (distJL != nullptr) { // delete distJL; // distJL = nullptr; // } } void useMenuInit(RectangleTameemB** rec1Ptr, RectangleTameemB**rec2Ptr, RectangleTameemB** resultPtr) { int optionValue; int xNum, yNum; int xDenom, yDenom; int lenNum, lenDenom; int widNum, widDenom; do { cout << “n” ” **************************n” ” * SubMENU – INITIALIZING *n” ” * 1. Creating *n” ” * 2. Updating *n” ” * 3. Returning *n” ” **************************n” ” Select an option (integer only) : “; cin >> optionValue; switch (optionValue) { case 1: if (*rec1Ptr == nullptr && *rec2Ptr == nullptr) { for (int i = 1; i < 3; i++) { cout << “n Creating Rectangle ” << i << ” –“ “n Setting Upper Left Point x -“ “n Enter numerator: “; cin >> xNum; cout << ” Enter denominator: “; cin >> xDenom; cout << “n Setting Upper Left Point y -“ “n Enter UL numerator: “; cin >> yNum; cout << ” Enter UL denominator: “; cin >> yDenom; cout << “n Setting length -“ “n Enter length numerator: “; cin >> lenNum; cout << ” Enter length denominator: “; cin >> lenDenom; if (lenNum < 0 && lenDenom < 0) { cout << ” length must be greater then 0″; “n Enter length numerator: “; cin >> lenNum; cout << ” Enter length denominator: “; cin >> lenDenom; } cout << “n Setting width -“ “n Enter width numerator: “; cin >> widNum; cout << ” Enter width denominator: “; cin >> widDenom; if (widNum < 0 && widDenom < 0) { cout << ” width must be greater then 0″; “n Enter width numerator: “; cin >> widNum; cout << ” Enter width denominator: “; cin >> widDenom; } if (i == 1) { *rec1Ptr = new RectangleTameemB(xNum, xDenom, yNum, yDenom, lenNum, lenDenom, widNum, widDenom); } if (i == 2) { *rec1Ptr = new RectangleTameemB(xNum, xDenom, yNum, yDenom, lenNum, lenDenom, widNum, widDenom); } } } else { cout << “n The Circles already exists!” “n Cannot create new Circles”; } break; case 2: if (*rec1Ptr == nullptr && *rec2Ptr == nullptr) { cout << “n Not a proper call as” ” no Rectangles are available!” << endl; } else { cout << “n Updating Rectangle — “ “n Which Rectangle to be updated (1 or 2)? “; cin >> optionValue; if (optionValue != 1 && optionValue != 2) { do { cout << “n Wrong Option!” “n Which Rectangles to be updated (1 or 2)? “; cin >> optionValue; } while (optionValue != 1 && optionValue != 2); } cout << “n UPDATING…..” “n Setting Upper Left Point x -“ “n Enter numerator: “; cin >> xNum; cout << ” Enter denominator: “; cin >> xDenom; cout << “n Setting Upper Left Point y -“ “n Enter UL numerator: “; cin >> yNum; cout << ” Enter UL denominator: “; cin >> yDenom; cout << “n Setting length -“ “n Enter length numerator: “; cin >> lenNum; cout << ” Enter length denominator: “; cin >> lenDenom; if (lenNum < 0 && lenDenom < 0) { cout << ” length must be greater then 0″; “n Enter length numerator: “; cin >> lenNum; cout << ” Enter length denominator: “; cin >> lenDenom; } cout << “n Setting width -“ “n Enter width numerator: “; cin >> widNum; cout << ” Enter width denominator: “; cin >> widDenom; if (widNum < 0 && widDenom < 0) { cout << ” width must be greater then 0″; “n Enter width numerator: “; cin >> widNum; cout << ” Enter width denominator: “; cin >> widDenom; } if (optionValue == 1) { (*rec1Ptr)->update(PointTameemB( FractionTameemB(xNum, xDenom), FractionTameemB(yNum, yDenom)), FractionTameemB(lenNum, lenDenom), FractionTameemB(widNum,widDenom)); } if (optionValue == 2) { (*rec2Ptr)->update(PointTameemB( FractionTameemB(xNum, xDenom), FractionTameemB(yNum, yDenom)), FractionTameemB(lenNum, lenDenom), FractionTameemB(widNum,widDenom)); } } break; case 3: cout << “n Returning to “MENU – Hw#6″”; break; default: cout << ” Wrong option!” << endl; } } while (optionValue != 3); } void useMenuAP(RectangleTameemB** rec1Ptr, RectangleTameemB**rec2Ptr, RectangleTameemB** resultPtr) { int optionValue; do { cout << “n” ” ********************************n” ” * SubMENU – Area/Perimeter *n” ” * 1. Computing Area *n” ” * 2. Computing Perimeter *n” ” * 3. Returning *n” ” *********************************n” ” Select an option (integer only) : “; cin >> optionValue; switch (optionValue) { case 1: break; case 2: break; case 3: cout << “n Returning to “MENU – Hw#6″”; break; default: cout << ” Wrong option!” << endl; } } while (optionValue != 3); } void useMenuPerp(RectangleTameemB** rec1Ptr, RectangleTameemB**rec2Ptr, RectangleTameemB** resultPtr) { int optionValue; do { cout << “n” ” ********************************n” ” * SubMENU – Persceptives *n” ” * 1. Disjoining *n” ” * 2. Interssecting *n” ” * 3. Enclosing *n” ” * 4. Returning *n” ” *********************************n” ” Select an option (integer only) : “; cin >> optionValue; switch (optionValue) { case 1: break; case 2: break; case 3: break; case 4: cout << “n Returning to “MENU – Hw#6″”; break; default: cout << ” Wrong option!” << endl; } } while (optionValue != 4); } void useMenuComparing(RectangleTameemB**, RectangleTameemB**){ int optionValue; do { cout << “n” ” ********************************n” ” * SubMENU – Comparing *n” ” * 1. Using Areas *n” ” * 2. Using Perimeter *n” ” * 3. Returning *n” ” *********************************n” ” Select an option (integer only) : “; cin >> optionValue; switch (optionValue) { case 1: break; case 2: break; case 3: cout << “n Returning to “MENU – Hw#6″”; break; default: cout << ” Wrong option!” << endl; } } while (optionValue != 3); } void useMenuDisplaying(RectangleTameemB**, RectangleTameemB**){ int optionValue; do { cout << “n” ” ********************************n” ” * SubMENU – Displaying *n” ” * 1. Rectangle #1 *n” ” * 2. Rectangle #2 *n” ” * 3. Both Rectangles *n” ” * 3. Returning *n” ” *********************************n” ” Select an option (integer only) : “; cin >> optionValue; switch (optionValue) { case 1: break; case 2: break; case 3: break; case 4: cout << “n Returning to “MENU – Hw#6″”; break; default: cout << ” Wrong option!” << endl; } } while (optionValue != 4); } /* void findPostionTameemB(const RectangleTameemB& rec1Ptr, const RectangleTameemB& rec2Ptr,FractionTameemB& dist){ RectangleTameemB tmpRec1 = rec1Ptr; RectangleTameemB tmpRec2 = rec2Ptr; if ((&tmpRec1)->getul() == (&tmpRec2)->getul()&& (&tmpRec1)->getul() == (&tmpRec2)->getul()) { cout << “n rec #1 is right over rec #2n”; } else if (dist > ((&tmpRec1)->getul() + (&tmpRec2)->getul())) { cout << “n Rec #1 and Rec #2 are disjoinedn”; } else { if ((&tmpRec1)->getul() > dist +(&tmpRec2)->getul()) { cout << “n Rec #1 encloses Rec #2n”; } else if ((&tmpRec2)->getul() > dist +(&tmpRec1)->getul()) { cout #include “HW6fractionTameemB.h” #include “HW6pointTameemB.h” #include “rectangleTameemB.h” #include “rectangleUtilityTameemB.h” using namespace std; int main() { int ch; displayClassInfo(); useMenuHw6(); cout << “nEnter any character to continue . . .”; cin >> ch; return 0; } . . .

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now