CMPT 120 Lecture 1: All Lecture Notes

154 views15 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
29
CMPT 120 Full Course Notes
Verified Note
29 documents

Document Summary

0s and 1s (i. e. off and on: hardware layer. Electrical components that produce 0s and 1s through different voltage levels: programming (software, operating system, applications, communication. Problem (or task): get myself to sfu in the morning. Some instructions have to be done in order. Different layers of details we can add on. Representation of an algorithm must be understood in order to executed correctly. Have to give specific instructions in order to know what to do. A programming language, like a natural language is made up of: building blocks. # lunch = 0. 75 + 1. 65 + 4. 80. In the real world, there are : object. Literal values: values that are inputting literally into the code. Values in a memory location can change name = anne name = 3. 14. Hand tracing python code apple = 0. 75 juice = 1. 65 sandwich = 4. 80 lunch = apple + juice + sandwich. Assign variable with an expression: output statements print()

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents