Roman numerals to a positive integer

Assignment Help Basic Computer Science
Reference no: EM13520236

Write a program that converts a number entered in Roman numerals to a positive integer. Your program should consist of a class, say, romanType. An object of type romanType should do the following:
a. Store the number as a Roman numeral.
b. Convert and store the number as a positive integer. Print the number as a Roman numeral or positive integer as requested by the user.
c. Print the number as a Roman numeral or positive integer as requested by the user.

The integer values of the Roman numerals are:
M 1000
D 500
C 100
L 50
X 10
V 5
I 1

d, Test your program using the following Roman numerals: MCXIV, CCCLIX, MDCLXVI.

Reference no: EM13520236

Questions Cloud

Prepare a cost of goods sold statement : Prepare a cost of goods manufactured statement and prepare a cost of goods sold statement.
Write a c++ program to help a local restaurant automate : Write a C++ program to help a local restaurant automate its breakfast billing system. The program should do the following:a. Show the customer the different breakfast items offered by the restaura
State the noble gas abbreviation ground state electronic : Write the noble gas abbreviation ground state electronic configurations for Ag and for Ag+. which is paramagnetic
How to estimate the constant-volume molar heat capacity : Use the equipartition theorem to estimate the constant-volume molar heat capacity of (a) I2, (b) CH4, (c) C6H6 in the gas phase at 25oC.
Roman numerals to a positive integer : Write a program that converts a number entered in Roman numerals to a positive integer
Determine the impedance at given frequency : A series RLC circuit consists of a 42.0 ? resistor, a 2.70 mH inductor, and a 460 nF capacitor. Determine the impedance at frequency 3000 Hz
Define the complete balanced molecular and ionic : Write the complete balanced molecular, ionic, and net ionic equations for the reaction of potassium phosphate + aluminum nitrate. Which product, if any, is a precipitate
Linear cost relation of the cost-volume-profit model : The linear cost relation of the cost-volume-profit model for a single-product firm, and use the following answer key:
Depict the structure for the major diels-alder product : Draw the structure for the major Diels-Alder product of the reaction betwen 1,3-cyclohexadiene and fumaric acid, the trans isomer of maleic acid.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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