Roman Numeral Conversion Assignment
This is an exercise in string manipulation.
Be sure to:
Use proper headings (date, program name, program description, date written)
Declare all variables used in the program, use meaningful variable names and
explain their purpose.
Use indentation and spacing, particularly in loops and IF statements.
Write a program to convert a Roman numeral to its decimal equivalent.
First, do some research to understand the composition of Roman numerals.
Accept the user’s input, ensuring that input is converted to capital letters and that
only the following Roman numerals are accepted.
I=1
V=5
X = 10
L = 50
C = 100
D = 500
M = 1000
Special cases are created when I , X or C precede a letter of greater value
(Example: IV = 4, IX = 9, XL = 40, CM = 900, etc.)
Determine the equivalent decimal value
Output both the Roman numeral and its decimal value
Allow the user to input more than one Roman numeral
BONUS: Reverse the process by allowing the user to input a decimal value and convert
it to its Roman numeral equivalent. Remember the special cases.