Revert "Delete Midterm.cpp"

This reverts commit 22f28450718706363b07f275a0c989a4724f9370.