Question: CIS103 Dictionary create a python dictionary Using a dictionary, create a program translate from decimal to roman numerals. Decimal Roman Decimal Roman Decimal Roman Decimal
CIS103 Dictionary
create a python dictionary
Using a dictionary, create a program translate from decimal to roman numerals.
Decimal Roman Decimal Roman Decimal Roman Decimal Roman
1 I 7 VII 13 XIII 19 XIX
2 II 8 VIII 14 XIV 20 XX
3 III 9 IX 15 XV 21 XXI
4 IV 10 X 16 XVI 22 XXII
5 V 11 XI 17 XVII 23 XXIII
6 VI 12 XII 18 XVIII 24 XXIV
TO DO:
Create dictionary from above table.
Print the table
Decision: add to dictionary (YES/NO) if Yes- set up loop to:
input: ask for key (decimal number) and Value (roman numeral) then add to dictionary
A zero or negative number stops the loop
add key and values: add this: key: 25, value: XXV and key: 30, value: XXX
print dictionary (to verify that the entries are there)
Set up loop to:
input a number (hint try/except for good input)
number must be integer, positive and greater than zero
hint: use if in
then print the roman number equivalent.
Or not found
Else
Print error message
Again(Yes/NO) look up another number
please help me create a python dictionary
thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
