CMPT 120 Lecture 1: Week 1 Notes (Sept,12)
meghan78 and 39786 others unlocked
29
CMPT 120 Full Course Notes
Verified Note
29 documents
Document Summary
An algorithm is a step by step list of instructions that if followed exactly will solve the problem under consideration. Natural language: languages that people speak (english, spanish, etc. ) Formal language: a programming language designed to express computations. The difference between both of those languages are ambiguity, redundancy, and. The print function; print( text ): displays a value on the screen. A comment; #text: is intended only for the human reader it is completely ignored by the interpreter. High-level languages: are languages such as python, c++, php, and java. A high- level language is easier to program and have many more advantages such as: easier to read, shorter, more likely to be correct. Low-level languages: are referred to as machine languages or assembly languages. They tend to be only executed on computers meaning high-level languages need to be processed before they can run on it. Two kinds of programs process high-level languages to low-level languages: