Question: Create anew Java project entitledjavaCurrency. 2 . Create three packages: com.application.model, com.application.controller and com.application.view. 3 . In the com.application.model package create a class called CurrencyModel.
Create anew Java project entitledjavaCurrency.
Create three packages: com.application.model,
com.application.controller and com.application.view.
In the com.application.model package create a class called CurrencyModel.
In the CurrencyModel class create two public functions: double
convertJMDToUSD This function accepts a double value representing
Jamaican Dollars and converts itto US Dollars and returns the converted
value and double convertUSDToJMD This function accepts a double value
representing US Dollars and converts itto Jamaican Dollars and returns the
converted valueThe formulas and exchange rate can be found online.
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
