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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:00, danielcano12281621
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
image
Computers and Technology, 23.06.2019 18:30, emmaishere69
List 3 items that were on kens resume that should have been excluded
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, genyjoannerubiera
In which view can you see speaker notes?
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, shrafe
Which two technologies support the building of single-page applications?
Answers: 2
You know the right answer?
Write a program that converts a number entered in roman numerals to decimal.

your progr...

Questions in other subjects: