A simple mortgage calculator in c++