this is what I need to do :
One of the principal stumbling blocks in the early development of mathematics was the notation used for numbers before the “Arabic” or “decimal” number system was introduced, since some of the older number systems were quite unsuited for arithmetic. As an example, the Roman system of numbers makes use of the symbols M (with value 1000), D (value 500), C (value 100), L (value 50), X (value 10), V (value 5), and I (value 1).
In the “old Roman” or “Classical” system a number is a sequence of M’s, D’s, C’s, L’s, X’s, V’s, and I’s in that order, the value of a number just being the sum of the values of the individual symbols.
Write a program that will convert a classical Roman numeral to a decimal number.
kinda lost help please
One of the principal stumbling blocks in the early development of mathematics was the notation used for numbers before the “Arabic” or “decimal” number system was introduced, since some of the older number systems were quite unsuited for arithmetic. As an example, the Roman system of numbers makes use of the symbols M (with value 1000), D (value 500), C (value 100), L (value 50), X (value 10), V (value 5), and I (value 1).
In the “old Roman” or “Classical” system a number is a sequence of M’s, D’s, C’s, L’s, X’s, V’s, and I’s in that order, the value of a number just being the sum of the values of the individual symbols.
Write a program that will convert a classical Roman numeral to a decimal number.
kinda lost help please