Question: CONVelleu al UL. */ public class CurrencyConverter T //instance variables private double rate ; //conversion rate Constructor method: initialize rate with a given rate (aRate)


CONVelleu al UL. */ public class CurrencyConverter T //instance variables private double rate ; //conversion rate Constructor method: initialize rate with a given rate (aRate) @param rate the conversion rate */ public Currency Converter (double aRate) // -----------Start below here. To do: approximate lines of code = 1 // 1. fill in this constructor to set the instance variable // ------- End here. Please do not remove this comment. Reminder: no changes outside the todo regions. Converts given amount according to rate. @param amount the amount to convert @return the product of rate and amount public double convert(double amount) //-----------Start below here. To do: approximate lines of code = 1 // 1. fill in this method to return product of rate and amount -------End here. Please do not remove this comment. Reminder: no changes outside the todo regions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
