You may copy and execute the codes in an offline VHDL simulator like ModelSim or an online simulator like EDA Playground. Don't forget to rename the file extensions as '.vhd' from '.txt'. You may also use Intel Quartus Prime Lite Edition to design and simulate the results using its waveform generator. Try to understand each line of the programs by relating them to the concepts learnt in the class.