Question: 3. Write a recursive C++ program that returns the English integer equivalent of a roman numeral given a method with a string argument. Use

3. Write a recursive C++ program that returns the English integer equivalent

 

3. Write a recursive C++ program that returns the English integer equivalent of a roman numeral given a method with a string argument. Use the standard Roman numeral values: M, D, C, L, X, V, and I. Remember, no more than three of the same letters can be used consecutively in a Roman numeral. For example, the number three is expressed as III, the number four must be expressed as IV. Values can only be between 1-3000. Use recursive method for your calculation, and recursion must be used for full credit. Refer to the sample output below. Sample Runs (2): Enter a positive value: 1345 The Roman numeral equivalent is: MCCCXLV Enter a positive value: 9 The Roman numeral equivalent is: IX Name the program: RecRomanCovertXX.cpp, where XX are your initials.

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 Programming Questions!