CSC 127A Lecture Notes - Lecture 3: Algebraic Equation, Order Of Operations
Document Summary
Note for homework: only use what we have been taught from the first three lectures. Even if you can complete it in a simpler form, don"t. Computers, internally computers store everything as 1s and 0s. Type: a category or set of data values: constrains the operations that can be performed on data, many languages ask the programmer to specify types. Int = integers (up to 2^31 1) i. e. Expressions: a value or operation that computers a value: examples: 1 + 4. I. e +, -, *, /, // (division w/o remainder), % (remainder), ** (exponent): as a program runs, its expressions are evaluated. Integer division, if you use //, the quotient is also an integer. Dividing by 0 will cause an error when you try to run your program. This will give you the remainder that you did not get when you used // to divide an integer.