Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert Roman Numeral to Integer type using array...

807601May 15 2008 — edited May 15 2008
Hi everyone, newbie here.. could any one help me to Write a program that converts numbers entered in Roman Numerals to decimal? The program should consist of a Class, say Roman. An object of the type Roman should do the following:

a. Store the numbers as a Roman numeral
b. Convert and store the number into integer.
c. Print the number as a Roman numeral or decimal number as requested by the user, the decimal value of the Roman numerals are:
M = 1000
D = 500
C = 100
L = 50
X = 10
V = 5
I = 1
d. Test the program using the Following Roman numerals: MCXIV, CCCLIX, and MDCLXVI

the program have to use ARRAY.. im using TextPad anyways.., so please help me to solve this problem with simple codes..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2008
Added on May 15 2008
6 comments
2,265 views