October 2021
Intermediate to advanced
500 pages
16h 23m
English
Right now, Doubloons4Gold exchanges currencies at the current exchange rate. It does not allow any markup in the price, which is not a profitable strategy for a currency exchange business.
Implement a new policy where a 5% exchange fee is charged on each currency exchange. As a second challenge, set a minimum currency exchange fee of $5 to encourage customers to use fewer transactions. After this change, your output should look something like this.
Hello from Kotlin/JS!
The current exchange rate is $1.19 per doubloon
How many doubloons do you want?
5 5.0 doubloons is worth $5.96 It will cost $10.96 for 5.0 doubloons Hello from Kotlin/JS! The current exchange rate is $1.37 per doubloon How many doubloons ...Read now
Unlock full access