Question: Write a program RomanNumeral.java that allows for the representation and manipulation of Roman numerals. Roman numerals use capital letters to represent numbers, combining symbols to

Write a program RomanNumeral.java that allows for the representation and manipulation of Roman numerals. Roman numerals use capital letters to represent numbers, combining symbols to add them together to greater values. For instance, I stands for 1, and II stands for 2. In general, the letters and their values are:

I:1 V:5 X : 10 L : 50 C : 100 D : 500 M : 1000

In general, higher value symbols should come first - for instance, 13 is represented as XIII, not IIIX (or any mixture such as IXII). Also, there is a special subtractive notation to prevent the same symbol appearing four times in a row - in such cases, you instead put that symbol once ahead of the next highest value symbol. So, 4 is represented by IV (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!