Question: Write a Java program. In the modern Roman system a number is also a sequence of M's, D's, C's, L's, X's, V's, and 1's. The

Write a Java program.

Write a Java program. In the "modern Roman" system a number is

In the "modern Roman" system a number is also a sequence of M's, D's, C's, L's, X's, V's, and 1's. The symbols have to appear more or less in that order and the value of a number is obtained as before with one important exception: A symbol C, X, or I may precede a symbol of higher value, in which case the value of that symbol C, X, or I is taken to be negative. Write a Function that will convert a decimal number to a modern Roman numeral. Demo 999 Examples Decimal Classical Roman Modern Roman 4 IV VIll IX 91

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 Databases Questions!