Question: In c++ language write the following program. Split the file to romanNumeral.h, romanNumeral.cpp, main.cpp, and makefile. Use linux terminal and not visual studio headers etc.

In c++ language write the following program. Split the file to romanNumeral.h, romanNumeral.cpp, main.cpp, and makefile.

Use linux terminal and not visual studio headers etc. Please double check the outputs with the following sample and conditions. 100% perfection.

Thank You

To implement operators to compute roman numerals, class is shown below.

In c++ language write the following program. Split the file to romanNumeral.h,romanNumeral.cpp, main.cpp, and makefile. Use linux terminal and not visual studio headersetc. Please double check the outputs with the following sample and conditions.

class romanNumeral public: romanNumeral C); romanNumeral (string); romanNumeral operator+(const romanNumeral&) const romanNumeral operator+(int) const; romanNumeral operator -(const romanNumeral&) const; romanNumeral operator-(int) const; romanNumeral operator* (const romanNumeral&) const; romanNumeral operator*(int) const; friend romanNumeral operator+(int, const romanNumeral&); friend romanNumeral operator-(int, const romanNumeral&); friend romanNumeral operator*(int, const romanNumeral&); friend ostream& operator>(istream&, romanNumeral&); private: string rNum; Description of Members Each member will contain/perform the following string rNum contains the roman numeral . romanNumera1 : : romanNumeral() 1s the default constructor that sets rNum to an empty string romanNumeral: :romanNumeral (string str) is the constructor that will assign str to rNurm romanNumeral romanNumera1 : : operator+ (const romanNumerald rhs) const is the addition oper- ator that adds the rhs object to the object that calls the operator and a romanNumeral object is returned that contains the sum romanNumeral romanNumeral: :operator+(int rhs) const is the addition operator that adds the rhs variable (which is an integer) to the object that calls the operator and a romanNumeral object is returned that contains the sum class romanNumeral public: romanNumeral C); romanNumeral (string); romanNumeral operator+(const romanNumeral&) const romanNumeral operator+(int) const; romanNumeral operator -(const romanNumeral&) const; romanNumeral operator-(int) const; romanNumeral operator* (const romanNumeral&) const; romanNumeral operator*(int) const; friend romanNumeral operator+(int, const romanNumeral&); friend romanNumeral operator-(int, const romanNumeral&); friend romanNumeral operator*(int, const romanNumeral&); friend ostream& operator>(istream&, romanNumeral&); private: string rNum; Description of Members Each member will contain/perform the following string rNum contains the roman numeral . romanNumera1 : : romanNumeral() 1s the default constructor that sets rNum to an empty string romanNumeral: :romanNumeral (string str) is the constructor that will assign str to rNurm romanNumeral romanNumera1 : : operator+ (const romanNumerald rhs) const is the addition oper- ator that adds the rhs object to the object that calls the operator and a romanNumeral object is returned that contains the sum romanNumeral romanNumeral: :operator+(int rhs) const is the addition operator that adds the rhs variable (which is an integer) to the object that calls the operator and a romanNumeral object is returned that contains the sum

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!