Comp 14 Introduction to Programming - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

Comp 14 Introduction to Programming

Description:

Concert. Talk. Speech. Cooking Lessons. Town Hall Meeting. Performer. Theater ... Word Processor, Script Writer. Translator / Interpreter, Stagehand, Performer ... – PowerPoint PPT presentation

Number of Views:15
Avg rating:3.0/5.0
Slides: 16
Provided by: tar78
Learn more at: http://www.cs.unc.edu
Category:

less

Transcript and Presenter's Notes

Title: Comp 14 Introduction to Programming


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
1.1(a) The Theater World
5
1.1(b) The Theater World
reads entire script
hears sentence
speaks sentence
writes entire script
6
1.1 (a) The Theater World
Original Script
7
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
1.2 (a) The Computer World
Program Editor
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
Write a Comment
User Comments (0)
About PowerShow.com