Question: using a python code Super Challenge: Write a program that converts an incorrectly repeated number like CCCC into the proper form of CD Write a

using a python code

Super Challenge:

  1. Write a program that converts an incorrectly repeated number like CCCC into the proper form of CD

  2. Write a program that converts a correctly negated roman numeral into a non-negated incorrect equivalent. For example IV becomes IIII

  3. If you can do the first two parts then you are ready to do addition of roman numerals WITHOUT converting them to Arabic first! This one might take some extra research beyond what we have covered in class up to this point.

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!