Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a function called roman_digit that takes a letter (I, V, X, L, C, D, or M, or the lowercase version of any of these)
Create a function called roman_digit that takes a letter (I, V, X, L, C, D, or M, or the lowercase version of any of these) and returns its decimal value. If the character is not one of those listed, the function should return 0. Function name: roman_digit Input argument: a single character representing a Roman digit. May be either upper or lower case Output argument: a scalar integer value, the decimal value of the Roman digit Reminder of the weights of Roman digits: 1 = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1000
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started