Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

  1. Ask the user to enter a roman numeral

  2. Validate the number to make sure it follows all the rules. The number in the picture should cause you to print an error message.

  3. If the roman numeral is valid then you should convert it to its Arabic equivalent.

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

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Understand why empowerment is so important in many frontline jobs.

Answered: 1 week ago