Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use meaningful names for variables If there are two words in the variable use first word lowercase and first letter of second wordupper case i.e.,

  1. Use meaningful names for variables
  2. If there are two words in the variable use first word lowercase and first letter of second wordupper case i.e., firstName or underscore between 2 words i.e first_name
  3. Include appropriate comments in the code
  4. Output should be displayed exactly as mentioned against each problem
  5. Indent the lines of code appropriately

1.numeric.py

Write a program that prompts the User to enter a number between the range of 1 through 10. The program should display the Roman Numeral version of that number. If the number is outside the the range of 1 through 10, the program should display the error message. The output should display the data in table as shown below:

Hints:

Prompt user to enter for number.

Use a if /elif to vrify the number and display output accordingly.

If the number is out of range, display the following eorro message : ''Error: Invalid Number'.

Output should look like:

Number Roman Numeral

1 I

2 II

3 III

4 IV

5 V

6 VI

7 VII

8 VIII

9 IX

10 X Please use PYTHON for the programming.

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions