A student type a C++ program and saves it in his personal folder as Sample.cpp. After getting the output of the program, he checks the folder and finds three files namely Sample.cpp, Sample.obj and Sample.exe. Write the reasons for the generation of the two files in the folder.