Skip to main content

Posts

Showing posts from April, 2016

Architecture Diagram Explanation

Input Devices: Microphone, trackpad, camera, phone, scanner, USB Output Devices: Monitor, speaker, printer, projector, USB Program [stored in Random Access Memory (RAM)] Ask students for name, score Save the name and score Add scores Save scores in sum Calculate Average Save Avg Print... RAM Volatile Memory When the power is off, everything that is stored in RAM, is erased Temporary Central Processing Unit (CPU) Control Unit (CU) Sees through the execution of line by line statements of the program Arithmetic Logic Unit (ALU) Logical deduction If Avg is greater than 90, then... Evaluates logical statements

Computer Architecture Diagram

Fundamentals of Computer Architecture

Our computer always responds to electricity We choose binary number system (our power button) Of/On (2 states) 0: bit 1: bit Combination of 8 bits: byte  ex. Mega byte Byte: Unit of memory Every symbol on the keyboard: character  A; a to Z; z; all numbers...etc. Each character is represented by a combination of bits (1 byte) ex. 01000100 Based on code, alphabet shows up Compiler Translates the entire source code into binary Takes in code Points out errors When it is correct, it converts the source code into machine language/binary code/binary language/object code  Interpreter   Translates line by line Easier to find mistake in some situations (Has same features as compiler) Source Code (Java, C++) ---> Compiler/Interpreter ---> Object Code (binary: 01001111)  "My source code is not compiling/interpreting"  ______________________________________________________________ Systems programs that helps us to...