In general Roman numberals can be converted mathmatically
to their arabic equivalent by simply assiging a numerical value
to each letter, according to the chart below, and calculating a total.

M=1000|D=500|C=100|L=50|X=10|V=5|I=1

In code, could you show me how to along with comments convert
it.please help...much appreciated...