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:

  1. Convert any negated prefixes to additive suffixes. So, for example, IX would be rewritten to VIIII.

  2. Concatenate the two strings you want to add.

  3. 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.

  1. Do internal sums (e.g., replace IIIII with V)

  2. Convert back to subtractive prefixes. (e.g. replace XIIII with XIV)

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!