Question: Java programming Question: Please include any import statements needed Construct and implement a Roman Numeral class to store a roman numeral (a string) and its
Java programming Question:

Please include any import statements needed
Construct and implement a Roman Numeral class to store a roman numeral (a string) and its computed decimal value. example: Roman numeral: XX Decimal Value : 20 Include a default and an explicit constructor. Add the methods shown below: set(String r) - resets a roman numeral to a specified string.getDecimalValue() - returns the decimal value of the roman numeral. getRomanValue() - returns the roman numeral as a string. equal() - returns true if the roman numeral is equivalent in value to another RomanNumeral object, else returns false. increment() - increments the roman numeral by 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
