December 31 - Build a Currency Converter in Ruby
In this coding exercise you'll learn how to build a currency converter method in Ruby, including how to utilize advanced string interpolation.
Guide Tasks
- Read Tutorial
- Watch Guide Video
- Complete the Exercise
Video locked
This video is viewable to users with a Bottega Bootcamp license
Already a Bottega Student? Sign In
Summary
Build a currency converter method that can format the currency for the: US, Japan, and UK based currencies.
Example Input
5000, 'US'
Write a program that formats the data into a location based currency.
Example Output
"$5000.00"
Real World Usage
This is a common coding interview question since it forces you to work with multiple scenarios and perform string manipulation. This is also important when it comes to understanding how to utilize varying string interpolation options related to financial data.