Guided Practice 5.2: Converting Currencies

Using the HOFC strategy, write a function convert-currencies, which takes a conversion factor and a list of values in the first currency, and returns a list of the same values in the second currency. For example, if a Euro is worth US$1.18, then

(convert-currencies 1.18 (list 1 10 100)) 
 = (list 1.18 11.18 111.80)
converts a list of values in Euros to their values in US dollars.

Reminder: this is just a toy example. In the real world, you should NEVER use floating-point numbers to represent currency.


Last modified: Fri Aug 15 13:16:16 Eastern Daylight Time 2014