Posts

Showing posts from April, 2023

Using OOP in C++ to make a Currency Converter

Image
             In my time of learning C++ and comparing it to Java, there have been many clear differences I agree and disagree in using when it comes to coding a simple and general program. As such, I decided to make a currency converter. A program that provides options of what currency one would want converted from the Canadian dollar. After inputting that option, a new input that accepts numbers which represents the Canadian dollar is then accepted into the system and outputs the converted amount in the currency that the user chose.             The program starts with the main driver printing out all the options the program has to offer. The options include the US dollar, Euro, Japanese Yen, and Australian Dollar. The “cout” syntax, mentioned in the last blog post, is used to display streams of characters followed the insertion operator (<<). The options are displayed on the terminal which...