some c++ code written as part of assignments to open online course C++ For C Programmers