Write a program which will accept a Roman numeral input from the keyboard
and return to the screen its numeric value. Some of you cases should input unusual or
awkward input, and at least one trial must include an improperly formed Roman numeral.
The following features of the Roman numeral system are shown for review, and some
limitations are given to help ease the program’s complexity:
1. The following Roman numerals, with their Arabic equivalents, must be handled:
I – 1
V – 5 X – 10
L – 50
C – 100
D – 500
M – 1000
2. The Middle-Ages extension of the Roman numeral system which intended to shorten
notations (such as replacing VIIII by IX and XXXX by XL) will be avoided. The
program does not have to anticipate or handle subtractive prefixes.
3. All inputs will be in the range [1, ..., 500]. The program does not have to handle a zero,
and it does not have to work with Roman numerals larger than 1,000.
so what would you guys suggest? would functions be a good place to start, we only just learned them so i'm a little nervous about using them. if i should use them does anyone have any sudo code to help me out a little? or a direction for me to start?