Computer programs contain instructions that tell computers what to do. Programs are written using programming languages as computers only understand machine code. There are different types of programming languages including machine language, assembly language, and high-level languages. High-level languages are easier for humans to read but must be compiled into machine code for computers to execute. Programming involves defining a problem, describing inputs and outputs, developing an algorithmic solution, and testing the program.