Question
use the python code Converting Roman to Arabic Now that you are an expert in converting roman numerals to numbers its time to save yourself
use the python code
Converting Roman to Arabic
Now that you are an expert in converting roman numerals to numbers its time to save yourself the trouble and write a program that does it for you. Heres an outline of what you should do.
-
Ask the user to enter a roman numeral
-
Validate the number to make sure it follows all the rules. The number in the picture should cause you to print an error message.
-
If the roman numeral is valid then you should convert it to its Arabic equivalent.
-
Print out the roman numeral and its Arabic equivalent.
Hint: You will want to start by using a dictionary to map each single character roman numeral to the correct Arabic number.
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