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:

Java programming Question: Please include any import statements needed Construct and implement

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!