Question: A 2 B ( 2 0 marks ) Develop a Java Program to Model a Currency Conversion System Write a Java program of handling purchase
AB marks
Develop a Java Program to Model a Currency Conversion System
Write a Java program of handling purchase orders by fulfilling the following requirements, which includes two classes: CurrencyConverter, and AskCurrencyConverter.
This assessment work may not reflect a real and complete scenario in a ctual cases.
with these input parameters accordingly.
A related method converts US dollars to foreign currency:
If amount is greater than or equal to the threshold amount, applies half commission rate
If amount is less than the threshold amount, applies full commission rate
Formula: dollar times exchangeRate times commission
A related method converts foreign currency to US dollars:
If equivalent USD amount is greater than or equal to the threshold amount, applies half commission rate
If equivalent USD amount is less than the threshold amount, applies full commission rate
Formula: foreignMoney div exchangeRate times commission
A related method setsgets the exchange rate between USD and foreign currency.
A related method setsgets the commission rate charged for conversion.
A related method setsgets the threshold amount for reduced commission. Class AskCurrencyConverter marksCreate a public Java class AskCurrencyConverter, in file AskCurrencyConverter.java, as the main class of the Currency Conversion System based on the description below.Instantiate two CurrencyConverter objects with the following attributes:Set largeAmount to US$Use the yenConverter to convert yens to US dollars.Use the yenConverter to convert from US $ to yens.Set the exchange rate of euro to Use the euroConverter to convert euros to USS.Use the euroConverter to convert from US$ to euros.
Sample Program Output
Currency Conversion System, AP
yens US$
US$ yens
euros US$
US$ euros
END of main Done by
Evaluation and Submission
Mark sure you follow the instructions, including the required naming eg parameters, methods and filesCompile, Run, Debug, Test and Evaluate your program based on the requirements.Submit ALL required files to SOUL:Java Source code files: CurrencyConverter.java and AskCurrencyConverter.javaCompiled bytecode files: CurrencyConverter.class and AskCurrencyConverter.classDo NOT compresszip or rename the files. Submission work not following instructions and requirements may not be marked or be penalized.IMPORTANT No Late Submission. Make sure the submitted work is the most updated.
Remarks:More testing may be performed during assessment based on the requirements, apart from the given testing cases.
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
