Question: Write a python program that converts a correctly negated roman numeral into a non-negated incorrect equivalent. For example IV becomes IIII To add two roman
Write a python program that converts a correctly negated roman numeral into a non-negated incorrect equivalent.
For example IV becomes IIII
To add two roman numerals follow these steps:
-
Convert any negated prefixes to additive suffixes. So, for example, IX would be rewritten to VIIII.
-
Concatenate the two strings you want to add.
-
Sort the letters, large to small. (research required)
If youve made it this far you have an answer but its not the simplest answer. Keep going.
-
Do internal sums (e.g., replace IIIII with V)
-
Convert back to subtractive prefixes. (e.g. replace XIIII with XIV)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
