Question: USE PYTHON Demonstrate the use of if/else/elif statements Demonstrate the use of functions and conditional algorithms Demonstrate use of Strings Demonstrate the use of indefinite


USE PYTHON
Demonstrate the use of if/else/elif statements Demonstrate the use of functions and conditional algorithms Demonstrate use of Strings Demonstrate the use of indefinite loops Demonstrate good program structure O Write a program that prompts for a number and displays it in Roman numeral equivalent. Consider the algorithm below: For decimal number : 1. From the following table, find the highest decimal value v that is less than or equal to the decimal number x and its corresponding roman numeral n: Decimal value (v) Roman numeral (n) 1 | 4 IV 5 V 9 IX 10 40 XL 50 L 90 XC 100 400 CD 500 D 900 CM 2. Write the roman numeral n that you found and subtract its value v from x: 3. Repeat stages 1 and 2 until you get zero result of x. Example X = 36 Iteration # Decimal number (x) Highest Highest decimal roman Temporary value numeral result (v) (n) 1 36 10 2 26 10 x XX 3 16 10 XXX 4 6 5 V XXXV 5 1 1 1 XXXVI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
