Chapter 1
Chapter 1
ENIAC
Electronic Numeric Integrator
800MHz
Punch card storage
Timeline:
1960's 1970's 1980's 1990's
<-|-------------------|----------------|-----------------|----->
computers for -networks -PC'c -eplosoin of PC's
large companies -email -network sharing -internet
Bit
-binary digit
-ones & zeros
Byte
-8 bits
Ex.
1101 =(1*2^3)+(1*2^2)+(0*2^1)+(1*2^0)=8+4+0+1=13
2
101101 =(1*2^5)+(0*2^4)+(1*2^3)+(1*2^2)+(0*2^1)+(1*2^0)=32+8+4+1=45
2
1110 =(8^3)+(8^2)+(8^1)+(0)=512+64+8=584
8
10101 =(3^4)+(0)+(3^2)+()+(3)=81+9+1=91
3
101 =(16^2)+(0)+(16^0)=256+1=257
16
Address
-A bytes location in memory
Class - defines a list of data resources and rules of behavior
Instance Variables - variables tht are defined by a class
Method - rules of behaior of a class
Ex.
CoffeeMachineClass
nouns - filter, coffeetype, cup, milk, sugar, water (instance variables)
verbs - changefilter(), placefilter(), selectcoffee(), dispencecup(), pourmilk()
Computer Science & Programming
-Study of algarithmic processes in regards with the computer (theory)
-Machine Language - binary
-Assembly Language - assembler translates tto machine code
-High-Level Language - compiler translates to machine code
-Java - created by SUN mainly by James Goslling
--compiler: JDK
--Java-->byte code
-Syntax Error - occurrs when computer cannoot convert the code
Object-Oriented Programming(OOP)
-object with same properties belong to samee class
-use of classes
-programming with objects
Procedural
-no set path
-Set path
Class - list of data resourcesadn rules of behavior
Instance Variables-variables that are defined by a class
Methods - rules of behavior for a class
Home