Roman numerals

From Rosetta Code

There are two tasks concerning Roman numerals: