When In Rome… One method for converting an Arabic number into a Roman number is to separately convert each digit (the units, tens, hundreds, and thousands positions) as shown:
1 9 8 4
M CM LXXX IV
Write an algorithm that accepts as inputs any numeric values up to 3999, and outputs the corresponding Roman numbers.
a. Do this, if the number is entered digit by digit (least significant digits first, like 4 8 9 1).
b. Do this, if the number is entered digit by digit (most significant digits first, like 1 9 8 4).
c. Do this, if the number is entered all at once, as an integer, like 1984.