30 likes | 44 Views
FOR MORE CLASSES VISIT<br>tutorialoutletdotcom <br><br>In Programming Exercise 1 in Chapter 1, we defined a class<br>roman'rype to implement Roman numerals in a program. In that<br>exercise, we also implemented a fianction, roman'I'oDecimal, to con—<br>vert a Roman numeral into its equivalent decimal number. Modify the definition of the class roman'rype so that the data mem—<br>bers are declared as protected. Use the class string to manipulate<br>the strings- Furthermore, overload the stream insertion and stream<br>
E N D
In Programming Exercise 1 in Chapter • FOR MORE CLASSES VISIT • tutorialoutletdotcom • In Programming Exercise 1 in Chapter 1, we defined a classroman'rype to implement Roman numerals in a program. In thatexercise, we also implemented a fianction, roman'I'oDecimal, to con—vert a Roman numeral into its equivalent decimal number. Modify the definition of the class roman'rype so that the data mem—bers are declared as protected. Use the class string to manipulatethe strings- Furthermore, overload the stream insertion and stream