Explore BrainMass

Program to Convert Roman Numerals to Decimal Format

Write a program that converts a number from Roman numerals to decimal. It needs to consist of a class, romanType. And object type of the type romanType should do the following:

A. Store the number as a Roman numeral
B. Convert and story the number into decimal
C. Print Roman or decimal as requested.

M 1000
D 500
C 100
L 50
X 10
V 5
I 1

Does not need to be compiled only need the text file.

Solution Preview

I have completed your program. In the end I had to struggle for a good ...

Solution Summary

I have extensively commented the program for your ease of understanding. The program takes in a roman number and outputs the corresponding decimal/arabic number.