Currency converter written in C++