Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Concepts Late Objects

Authors: Cay S. Horstmann

3rd Edition

1119186714, 978-1119186717

More Books

Students also viewed these Programming questions