Question: 5 . In the com.application.controller package create a class called CurrencyController which contains one private variable of type CurrencyModel, this class will also be your

5. In the com.application.controller package create a class called
CurrencyController which contains one private variable of type CurrencyModel,
this class will also be your main class.
6. In the CurrencyController create apublic function convert which accepts two
String parameters: toConvertTo and value. Check if the string toConvertTo is
JMD or USD and call the corresponding model function (You will need to
convert the value to a double when calling the model functions). The return type
is void.

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!