Answered step by step
Verified Expert Solution
Question
1 Approved Answer
idk if thats any clearer for you but i basically just need to write a function that will take the input of roman numerals and
idk if thats any clearer for you but i basically just need to write a function that will take the input of roman numerals and output the decimal value associated with that roman numeral. and if the input is any other letter it will spit out a value of zero
Coun MS Den on decimal the character is one of those sted the console Creatindionale roman at the VXLC.D. or Mor the lowercase version of any of these and Function came roman_dial mo argumenta ng character representing a man at may be the upper or lowercase Output argument a car integer value the decimal value of the Roman agt Reminder of the weight of Romanages. I 1 -5.X-10L = 50 C 100-500 M-1000 Function Reset Code to call your function wal data disp('The decisivalent of the digit a l ) Comes MS Deore Create a function called roman digit that takes a ver V.XLC, D o M or the lowercase version of any of these and returns to decimal value of the character is not one of the listed the function should retum Function name roman Input argument a single character representing a Romano May be the upper or lower case Oputrument a categer value the decimal value of the Romandi Reminder of the weights of Romanis 1VSX1050, 100, 500M 1000 Function 1 put your function definition here Code to call your function xmple of how the function works dig m; val romancigit (die) disp('the decimal covalent of the Roman digit , die'is, strivel)) 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