Posts

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...

OOP with C++ and Java

Image
     As a student, I tend to stay in line with what topics and methods that were first taught to me at a young age. As I grew, learning new things from different sources of information, the quirk of curiosity grew in my ever-expanding arsenal of traits and identity. Going into the field of software development, the majority of what I thought revolved around using the programming language we all are familiar with, named Java.      All of us students of SAIT have come learn a lot about Java, either adoring or hating it at the end. However, there is a plethora of other programming languages such as Python and JavaScript. C++ is the language that has peeked my interest as its predecessors in the C family have existed since the 70s. Out of curiosity, I wondered how different will making object oriented programs be between Java and C++. Allow me to share my journey in quelling said curious thought.      If you are using Visual Studio Code as your I...