Create A Roman Numeral Converter

Problem Description

1. Ask the user to enter a number in roman numerals.
2. Convert the number to a decimal value.
3. Output the decimal value.
4. Output an error message if the roman numeral is not in the correct form.
5. Go to step 1. (Continue until the user indicates they want to quit.)

Desigh Suggestions

1. Put the string conversion code in a function.
2. Convert lowercase input characters to uppercase for processing and displaying.

Links

Roman numerals (Wikipedia)

RegEx Roman Numerals - Computerphile

Miscellaneous

Roman
Numeral
Value
I1
II2
III3
IV4
V5
VI6
VII7
VIII8
VIIII9
SymbolValue
I1
V5
X10
L50
C100
D500
M1,000
ExampleValue
MCDXCII1492
MMXX2020
MCMXLIV1944
XCIX99

Rules

Rules for writing roman numerals from www.cuemath.com/numbers/roman-numerals/