Question: A method named cC takes three inputs: from, to, and amount. Both from and to are strings and denote the name of a country. Variable
A method named cC takes three inputs: from, to, and amount. Both from and to are strings and denote the name of a country. Variable amount is of type float. method cC converts amount in the currency of the country specified by from and returns the equivalent amount, a quantity of type float, in the currency of the coutry specified by to. Here is an example:
July 26, 2004:
Inputs : from = "USA", to = "Japan", amount = "100"
returned value: 11,012.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
