Computing 1 Unit 1 Overview of Computer
Computing 1 Unit 1 Overview of Computer
Java Programming:
From Problem Analysis to Program Design,
Second Edition
– Hardware
– Software
• Main memory
• Examples:
– Keyboard
– Mouse
– Secondary storage
• Examples:
– Printer
– Monitor
– Secondary storage
– System programs
– Application programs
001001110111101
111010001111010
001011101010111
001110101001110
Compilers translate source code into machine
readable/executable files all at once.
Platform Dependence:
Each application has to be written once for
Windows, once for Macs, once for UNIX, etc.
Platform Independence :
Each application is written just once in order to run
on all of Windows, Macs, UNIX, etc.
TCC 101 Computing 1 School of Science and Technology
Why Java ?
GUIs
Graphical User Interfaces
Applets
Safe executables for the Web
Applications
General all-purpose programming
Sample Run:
My first Java program.
The sum of 2 and 3 = 5
7 + 8 = 15
– Structured design
– Object-oriented design