Presentation is loading. Please wait.

Presentation is loading. Please wait.

2-1 Hardware CPU Memory - 2 kinds Network Graphics Input and Output Devices.

Similar presentations


Presentation on theme: "2-1 Hardware CPU Memory - 2 kinds Network Graphics Input and Output Devices."— Presentation transcript:

1 2-1 Hardware CPU Memory - 2 kinds Network Graphics Input and Output Devices

2 Everything is Binary Eniac 1950 Eniac contained 17,468 vacuum tubes, 7,200 crystal diodes, 1,500 relays, 70,000 resistors, 10,000 capacitors and around 5 million hand- soldered joints. It weighed more than 30 short tons (27 t), was roughly 8 by 3 by 100 feet (2.4 m × 0.9 m × 30 m), took up 1800 square feet (167 m2), and consumed 150 kW of power 2-2

3 2-3 The First “Bug” “(moth) in relay” Mark II Aiken Relay Calculator (Harvard University, 1945)

4 Bits and Bytes KB MB GB TB PB HB? 1-4

5 Numbers and Letters Numbers are represented in base 2 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 Keystrokes are represented with ASCII ‘A’ = 65 = 0100 0001 ‘B’ = 66 ‘C’ = 67 ‘a’ = 97 ‘b’ = 98 1-5

6 1-6 Gates AND gateOR gateNOT gate

7 1-7 Example: XOR Circuit A AND (NOT B) OR (NOT A) AND B

8 2-8 Software Instructions to CPU / Hardware Binary Assembly Language High Level Languages

9 2-9

10 2-10 Programming Languages 1940 1950 1960 1970 1980 1990 2000 Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80 C# Logo Python

11 2-11 Software Development Emphasis on efficiency  fast algorithms  small program size  limited memory use Often cryptic code Not user-friendly Emphasis on  programmer’s productivity  team development  reusability of code  easier maintenance  portability Better documented User-friendly 1950-1970's:Now:

12 Java and BlueJ Java is our programming language, currently owned by Oracle. We need to download the Java JDK (Java Development Kit) from their website BlueJ is our IDE (Integrated Development Environment) in which we will write our Java code. It is very simple, free, and works on both Mac and PC. It has an editor, compiler, and debugger. 1-12

13 2-13 Java’s Compiler + Interpreter Editor    Hello.java  Compiler  Hello.class   Interpreter Hello, World !   Interpreter

14 2-14 Why Bytecodes? Platform-independent Load from the Internet faster than source code Interpreter is faster and smaller than it would be for Java source Source code is not revealed to end users Interpreter performs additional security checks, screens out malicious code

15 2-15 // Mike Bollhorst // Aug 17, 2015 // Hello: my first program - prints hello world on screen public class Hello { public static void print() { System.out.println(“Hello world!”); }


Download ppt "2-1 Hardware CPU Memory - 2 kinds Network Graphics Input and Output Devices."

Similar presentations


Ads by Google