Hello All,
I am Java course student and having a hard time writing a code for the following question. I need a piece of advice on how to write this as per requirement. Thank you
Write a currency converter class program based on the information given below. Add TWO more suitable and unique member methods for the above class. Ensure these new methods do not functionally overlap with the existing methods. You are not allowed to add additional attributes. Provide reasons in the form of “program comments” (80-150 words) on why you choose these methods.
Class Name: CurrencyConverter
Attribute : exchangeRate -Exchange rate to convert a US Dollar to ringgit
Constructor: to set the initial value for the attribute
Member methods:
• double fromRinggit (…)
-Converts a given amount in ringgit into an equivalent amount in US Dollar
• double toRinggit(..)
-Converts a given amount in the US Dollar into an equivalent ringgit amount