Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
image text in transcribed
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

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago