What is Computation? (Basic Machine Architecture (memory (data ,…
What is Computation?
Basic Machine Architecture
sequence of instructions
ALU = Arithmethic Logic Unit
does primitive operations
contains 1 program counter
takes in sequence of instructions from memory and sends to ALU
programs manipulate data objects
all objects have a TYPE
the type defines what kinds of things programs can do to them
can't be subdivided
the number 5
Python Scalar Objects
represents real numbers
3.2 or 5.6
represents booleans that are either true or false
only one value
have an internal structure that can be accessed
a list of numbers (5, 6, 7,8)
What is a "program"?
a sequence of definitions and commands
What are "Commands"?
statements that instruct the computer's interpreter to do something