1 / 15

Comp 14 Introduction to Programming

Comp 14 Introduction to Programming. Instructor: Prasun Dewan. (Pr sün Divän). Computer World. Theater Analogy. Play Concert Talk Speech Cooking Lessons Town Hall Meeting. Performance Script. Performance Language. written in. Theater Management. follows. stored in. managing.

tahir
Télécharger la présentation

Comp 14 Introduction to Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Comp 14Introduction 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. Performance Script Performance Language written in Theater Management follows stored in managing Theater Performer Notebook / Teleprompter Performer fetched from performs assists Real Trial Archive Stagehand Audience 1.1(a) The Theater World

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

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

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

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

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

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

  11. Computer Vs Theater

  12. Computer Vs Theater

  13. Computer Vs Theater • 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

More Related