Background
Roman numerals are a numerical system that originated in ancient Rome and were widely used throughout the Roman Empire. They are a way of representing numbers using a combination of letters from the Latin alphabet. The system uses seven letters, each of which has a corresponding numerical value: I (1), V (5), X (10), L (50), C (100), D (500), and M (1000).
You can convert from integers to roman numerals using the following steps:
- Create a lookup table for Roman numerals (see starter code).
- Find the largest Roman numeral that is less than or equal to the integer, and subtract it from the integer.
- Append the corresponding Roman numeral to the result string.
- Subtract the corresponding integer value from the original integer.
- Repeat ...