subject

Write a program that converts a number entered in roman numerals to decimal.

your program should consisit 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 into decimal.

c. print the number as a roman numeral or decimal as requested by user.
the decimal 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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
This technology is used to produce high-quality documents that look good on the computer screen and in print.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
You know the right answer?
Write a program that converts a number entered in roman numerals to decimal.

your progr...
Questions
question
Mathematics, 23.06.2021 20:10
question
Mathematics, 23.06.2021 20:10
Questions on the website: 13722361