Practice problems coded in c++. Feel free to use and add your changes.