CSC 127A Lecture Notes - Lecture 3: Algebraic Equation, Order Of Operations

32 views2 pages

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.

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