Write the appropriate matlab statements for each step

Assignment Help Computer Engineering
Reference no: EM132206026

Question :

Write a MATLAB function for converting a given value in roman numerals to decimal numbers (Roman to Decimal), e.g. the function will convert a string R = 'MMXV' to decimal value 2015 (the code should be able to convert any roman numeral string to decimal value).

If the input string contains any values outside of the following table, display an error. Assume that any combinations like IX for 9 or IV for 4, etc. will not be used in the input string.

Roman      Decimal

I               1

V              5

X              10

L              50

C             100

D             500

M            1000

a) Develop a pseudo code to solve the above problem.

b) Write the appropriate MATLAB statements for each step.

c) Test your solution by writing a MATLAB function on your computer and submit a print copy/email attachment of your code.

Reference no: EM132206026

Questions Cloud

Compute precision for a given reference value : Write out the results of each case to a Comma Separated Values (CSV) file*. Write out theprecision, and the base, along with the ratio of precision.
Complete the purchasing document matrix : Your team is required to train new procurement specialists and part of the training is to provide a reference guide that includes all relevant purchasing.
A program to generate a random noise of amplitude : Write a MATLAB program to generate a random noise of amplitude 0.2V_pp add it to a generated low frequency signal of 100Hz.
Explain the elements of business negotiations : You are a business negotiations consultant who has been hired by a start-up company to create a training guide for its newly hired procurement specialists.
Write the appropriate matlab statements for each step : Test your solution by writing a MATLAB function on your computer and submit a print copy/email attachment of your code.
Explain the relevance of changes in net income to investors : Explain the relevance of changes in net income to investors. Determine the ending balance in shareholders' equity. Why would organizations such as labor unions.
Why cost accounting is referred to as managerial accounting : Why Cost accounting is often referred to as "managerial accounting". What ways that a company uses cost accounting, and how it uses financial information.
What is the name of the software package : How do computers assist in the budget planning process? Software to assist companies with the budgeting process is available form a variety of sources.
Compute the cumulative product of the elements in a vector : Write a MATLAB function which computes the cumulative product of the elements in a vector.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Construct a bipartite graph with six nodes and eight edges

Construct a bipartite graph with six nodes and eight edges that has a three-edge matching, or prove that none exists.

  How a synchronous time division multiplexor stay synchronize

How does a synchronous time division multiplexor stay synchronized with the demultiplex or on the receiving end?

  Create a separate proj directory in the root directory

You'll need to create a separate proj2 directory in the root directory of your repository. You will need alarm working for project 2, therefore you will need to setup using on of the two following ways: Copy and paste the contents of pintos-base re..

  Determine the e-r for the proposed system

Determine the E-R for the proposed system. Provide the timeframe for delivering the solution to the project. Proposed system Interfaces and Dialogues prototype including forms and reports.

  Describe one of four pillars of information systems security

Computer Systems Architecture- Describe one of the four pillars of information systems security: confidentiality integrity, availability, and accountability.

  Discuss ambulance drivers needed a way to communicate

Ambulance drivers needed a way to communicate with the hospital when they were at a patient's location

  How to design a grade average program

plan a grade average program that will produce the numerical grade average of test scores input by a user.

  Write code that produces ten dashes of length

Define a fuction dashes() that draws multiple dashes and takes 3 parameters. Write code that produces 10 dashes of length (and gap) 20.

  Hackers and cyber criminal organizations

Hackers and Cyber Criminal Organizations, Give your opinion as to why hackers do not consider themselves to be criminals

  Discuss about the development of new algorithms

Auguste Kerchoff put forth a set of guidelines in the development of new algorithms or the evaluation of existing ones.

  Write the identity for the opt value

Give a dynamic programming for determining the most happiness you can generate for your clients by splitting your m hours among the n projects.

  Write a program that converts from twenty four-hour notation

Write a program that converts from 24-hour notation to 12-hour notation. For example, it should convert 14:25 to 2:25 P.M. The input is given as two integers.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd