Question: Need help implementing a reusable money class. It should represent at least 5 currencies: USD, EUR, INR (Indian Rupees), MXP (Mexican Pesos), JPY (Japanese Yen)

Need help implementing a reusable money class.

It should represent at least 5 currencies: USD, EUR, INR (Indian Rupees), MXP (Mexican Pesos), JPY (Japanese Yen)

It should implement the following:

Implement Javas Comparable interface. The compareTo method is called by List.sort.

Implement Javas Serializable interface. This allows Money objects to be saved to and read from files.

I am a bit lost on how to even start. Any help would be greatly advantageous to me. Thanks

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!