Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions