Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using C++ Prodramming Language,,Derive a class extRomanType from the class roman

ID: 3660287 • Letter: U

Question

Using C++ Prodramming Language,,Derive a class extRomanType from the class romanType...(class romanType convert number from decimal to roman) to do the following. In the class extRomanType, overload the arithmetic operators +, -, *, and / so that arithmetic operations can be performed on Roman numerals. Also, overload the pre- and postincrement and decrement operators as member functions of the class extRomanType.To add (subtract, multiple, and divide) Roman numerals, add (subtract, multiple, or divide,respectively) their decimal representations and then convert the result to the Roman numeral format. For subtraction, if the first number is smaller than the second number, ouput a message saying that,

Explanation / Answer

a. store the number as a Roman numeral b. convert and store the number into decimal form. c. print the number as a roman numeral or decimal number as requested by the user. The decimal values of the Roman numerals are: M 1000 D 500 C 100 L 50 X 10 V 5 I 1 d. test the program using the following Roman numerals: MCXIV, CCCLIX, MDCLXVI

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote