Intro - ENGR 2200U UOIT/FEAS Fall 2007 ENGR 2710U OO...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGR 2200U UOIT/FEAS Fall 2007 © Mike Eklund ENGR 2710U OO Programming and Design 1 Introduction to Java Programming Professor Saman Kumarawadu ENGR 2710U Fall 2010 – Saman Kumarawadu ENGR 2710U OO Programming and Design Objectives • To understand the activity of programming • To learn about the architecture of computers • To learn about machine code and high level programming languages • To become familiar with your computing environment and your compiler • To compile and run your first Java program • To recognize syntax and logic errors ENGR 2710U Fall 2010 – Saman Kumarawadu
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
ENGR 2200U UOIT/FEAS Fall 2007 © Mike Eklund ENGR 2710U OO Programming and Design What Is Programming? • Computers are programmed to perform tasks • Different tasks = different programs • Program • Sequence of basic operations executed in succession • Contains instruction sequences for all tasks it can execute • Sophisticated programs require teams of highly skilled programmers and other professionals ENGR 2710U OO Programming and Design What is a Computer Program? • A program is an algorithm described to a computer. • Because of their architecture computers, • Only understand binary (1’s and 0’s)(on and off) • must be told everything in machine readable form
Background image of page 2
ENGR 2200U UOIT/FEAS Fall 2007 © Mike Eklund ENGR 2710U OO Programming and Design Language Interpretation- Machine Code • These byte codes are called Machine Codes or Machine Language. Computers inherently understand machine codes because they can be executed by the machine's processing unit directly. It just reads a code, interprets what it means and does that action. ENGR 2710U OO Programming and Design Operations and Operands • Each instruction to the computer usually has two parts the command being performed ( operation ) and the data it is being performed on ( operands ).
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
ENGR 2200U UOIT/FEAS Fall 2007 © Mike Eklund ENGR 2710U OO Programming and Design Translation and Interpretation • Computers can almost execute the instruction directly (interpret it) since only a simple translation is required from the mnemonic (English-like command). ENGR 2710U OO Programming and Design Compilation, linking and executing • Computers cannot interpret high-level languages directly because the codes are more complex and rely on functionality which may be hidden someplace either in the depths of the language or in a library of common routines. The computer must now go through several steps;
Background image of page 4
ENGR 2200U UOIT/FEAS Fall 2007 © Mike Eklund ENGR 2710U OO Programming and Design Compiling • High-level language commands are replaced with the lower level. The compiler will not allow you to enter a program that is syntactically incorrect. • A
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 22

Intro - ENGR 2200U UOIT/FEAS Fall 2007 ENGR 2710U OO...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online