Question: Python 3.6 Create a program which accepts integer from keyboard, and output to the screen a Roman numeral as txt string. The output string must

Python 3.6

Create a program which accepts integer from keyboard, and output to the screen a Roman numeral as txt string. The output string must be in all uppercase letters and should be from high to low order.

The following features of the Roman numeral system are shown for review:

I 1 X 10 D 500 V 5 L 50 M 1000

C 100

The Middle-Ages extension of the Roman numeral system which intended to shorten notations (such as replacing VIIII by IX and XXXX by XL) does not have to be included. The program does not have to anticipate or handle subtractive prefixes.

All inputs will be in the range [1, ..., 500]. The program does not have to handle a zero, and it does not have to work with Roman numerals larger than 1,000.

If the input from the keyboard entered is not an integer value then the program should respond to cause the user to only enter valid data. You can use try, catch exception method to do this.

Please provide indented source code and screenshot of output. Thanks

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!