Presentation is loading. Please wait.

Presentation is loading. Please wait.

Comp 14 Introduction to Programming Instructor: Prasun Dewan (Pr  sün Divän)

Similar presentations


Presentation on theme: "Comp 14 Introduction to Programming Instructor: Prasun Dewan (Pr  sün Divän)"— Presentation transcript:

1 Comp 14 Introduction to Programming Instructor: Prasun Dewan (Pr  sün Divän)

2 Computer World

3 Theater Analogy Play Concert Talk Speech Cooking Lessons Town Hall Meeting

4 Performer Theater 1.1(a) The Theater World Performance Language written in Audience performs Performance Script follows Theater Management managing Notebook / Teleprompter stored in Stagehand assists RealTrial fetched from Archive Performer

5 1.1(b) The Theater World Original Script written in Script language reads entire script Translator writes entire script Translator (Interpreter) hears sentence speaks sentence Performance Script Performance Language written in

6 1.1 (a) The Theater World Reference Material Secretary links Original Script Writer written by Word Processor, Script Writer Translator / Interpreter, Stagehand, Performer checked by problems Syntax, Semantics, Logic, & Style uses Word Processor / Typewriter

7 1.2(a) The Computer World Object Code Machine Language written in User Processor Memory fetched from Disk / Tape stored in Debugging follows interacts with Runtime Real assists managing Operating System

8 1.2 (b) The Computer World Source Code Object Code written in Programming Language CompilerInterpreter reads entire code reads statement writes entire code writes statement Machine Language written in

9 1.3 Translating using both a Compiler and Interpreter Source Code Platform-Independent Intermediate Code Interpreter Platform-Specific Machine Code Compiler CPU

10 1.2 (a) The Computer World Libraries Source Code Linker links Program Editor uses Programmer written by problems written in Programming Language Editor, Programmer, Translator, Operating System Runtime, Processor checked by Syntax, Semantics, Logic, & Style J++

11 Computer Vs Theater

12

13 CPU is fast: can do several performances at one time. CPU is dumb: no improvisation possible. Machine language much lower-level than programming language.

14 Why Java Modern, modular (object-oriented) language. Good Error Detection. Rich Library Embodying Many Good Programming Principles Can Write Teaching Tool (ObjectEditor)

15 Java Versions, Dialects & Programming Enviromnet JDK 1.1 Microsoft Implementation Swing 1.1 Visual J++ Programming Environment Will not matter


Download ppt "Comp 14 Introduction to Programming Instructor: Prasun Dewan (Pr  sün Divän)"

Similar presentations


Ads by Google