Add cpp programs for exam 3  as a reference for the test