










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































Department of Electrical Engineering
Computer Performs computations and makes logical decisions Millions / billions times faster than human beings Computer programs Sets of instructions for which computer processes data Hardware Physical devices of computer system Software Programs that run on computers
Logical units in every computer:
Input unit Obtains information from input devices (keyboard, mouse) Output unit Outputs information (to screen, to printer, speakers) Memory unit Rapid access, low capacity, stores input information Secondary storage unit Cheap, long-term, high-capacity storage Stores inactive programs (Hard drives, floppy drives)
Long list of memory locations Each contains zeros and ones Can change during program execution Binary Digit or Bit A digit that can only be zero or one Byte Each memory location has eight bits Address Number that identifies a memory location
Most integers and real numbers are too large
Address refers to the first byte
Next few consecutive bytes can store the additional bits for larger data.
Stores instructions and data between sessions A file stores data or instructions in secondary memory
Usually called RAM Computer can directly access any memory location
Data is generally found by searching through other items first More common in secondary memory
Central Processing Unit Follows program instructions Typical capabilities of CPU include:
add subtract multiply divide move data from location to location
MEMORY ORGANIZATION
MEMORY
DATA
INSTRUCTION
DATA
PROGRAM
docsity.com
Generation of Languages
1GL Machine language
2GL Assembly Language
3GL High Level Languages ( C, C++, Java)
4GL Closer to natural languages than 3GL. Languages for accessing databases are expressed as 4GL.
5GL Artificial Intelligence and neural networks.
LOW AND HIGH LEVEL PROGRAMMING
LOAD BASEPAY ADD OVERPAY STORE GROSSPAY
LOW AND HIGH LEVEL PROGRAMMING
High level: Pascal, ‘C’, Fortran, ‘C++’/Java One statement is equivalent of many machine code operations. ans = a/(b*24); Human understandable, fast to write, inefficient (?) in terms of code size and run Must be translated to zeros and ones for the CPU to execute a program portable between processors.
Example: grossPay = basePay + overTimePay