subject
Computers and Technology, 13.01.2020 20:31 egirl31

Write a program that converts a number entered in roman numerals to decimal. your program should consist of a class, say, roman. an object of type roman 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 number as requested by the user. the decimal number values of the roman numerals are: m 1000d 500c 100l 50x 10v 5i 1d. your class must contain the method romantodecimal to convert a roman numeral into its equivalent decimal numbere. test your program using the following roman numerals: cxiv, ccclix, and mdclxvi.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What role do chromosomes play in inheritance?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
You know the right answer?
Write a program that converts a number entered in roman numerals to decimal. your program should con...
Questions
question
Mathematics, 04.03.2021 21:00
question
Mathematics, 04.03.2021 21:00
question
Mathematics, 04.03.2021 21:00
question
Mathematics, 04.03.2021 21:00
question
Mathematics, 04.03.2021 21:00
question
History, 04.03.2021 21:00