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

  Create logic for a program that calculates amount of money

Create the logic for a program that calculates and displays the amount of money you would have if you invested $1000 at 5 percent interest for one year.

  What are the ramifications if test fails or is not performed

What tools are used to perform the test? Who are the stakeholders for the test? What are the ramifications if this test fails or is not performed?

  In what order should you place catch blocks

Suppose you have a hierarchy of exception classes that are derived from a base exception class. In what order should you place catch blocks?

  Determine the number of clusters in the data

COSC2110 - Data Mining - RMIT University - What is the effect of lowering the number of examples in the training set? Include your runs in your table

  What is the minimum fraction of each block

Describe a modified version of the B-tree insertion algorithm. What is the minimum fraction of each block that will always be filled using this scheme?

  Analyze the operation of the given circuit

The diagram below is an arbitration circuit taken from Motorola application note DC003, Using the MC68020 as a dedicated DMA controller.

  Draw an fdd that shows the personal trainers main functions

The BumbleBee program stores basic member information, but does not include information about member preferences, activities, and history.

  How can a company such as google use them to improve

Web search strings are a source of big data. How can a company such as Google use them to improve its search results?

  Identify three key areas in server virtualization technology

Identify the three key areas in both server virtualization technology and desktop virtualization technology that you feel are important in making a decision.

  What is a pending interrupt

Why, in most processors with interrupts. are further interrupts disabled when the processor reaches the interrupt service routine?

  Create a program that calculates fat grams and calories

john raymond was so pleased with the program you created for his clients that he regers you to his coworker,a nutrionist in the same facility.

  Illustrate the operation of count-sort on an array

Design an algorithm (pseudo code) that returns the SECOND largest key value of a Black-Red Tree. In addition, you can use diagrams to demonstrate that your algorithm make sense.

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