I would like some help with this please, and if you guys come up with some fancy out of my league way of doing it, just explain it.
Im sure with a huge IF or a SWITCH I could do this, but there has to be a more optimized way. I was thinking assigning values and then making an algorithm to check for ALL cases.
Or possible just comparing the first element to the element after it, then subtract if the first is less than the second, and otherwise add.
I do plan on using arrays
For your reference.
M 1000
D 500
C 100
L 50
X 10
V 5
I 1