Question
python Super Challenge: Write a program that converts an incorrectly repeated number like CCCC into the proper form of CD Write a program that converts
python
Super Challenge:
-
Write a program that converts an incorrectly repeated number like CCCC into the proper form of CD
-
Write a program that converts a correctly negated roman numeral into a non-negated incorrect equivalent. For example IV becomes IIII
-
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:
-
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started