Ch1_ Pascal Introduction

Ch1_ Pascal Introduction - Computer Programming Computers...

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

View Full Document Right Arrow Icon
1 1 Computer Programming Computers: – Hardware, and – Software Software: – Set of Programs made of Instructions – An instruction is a simple elementary Task to be performed by the computer Example of instructions: – Read an input from the keyboard. – Display something on the screen. – Perform a computation (+; /; -; *). Programming is a problem solving activity 2 Programming languages Overview Computers’ language is made of binary representations: – Not intelligible by human being High level programming languages: – Make use of instructions that resemble to everyday language. – Have a language standard that describes the grammatical form: Syntax Examples: Pascal, C, C++, Fortran, Java, Basic, Cobol 3 Programming languages Overview • Relationship Between High-Level and Machine Language: – Need to translate from high level instructions ( source program ) into machine code ( object program ) – This step requires a special utility program called Compiler 4 Steps for Preparing a Program for Execution 1. Use the text editor to write the program (high level instructions), and then save it to the hard disk. 2. Use a compiler to translate the source program into machine program The compiler displays also syntax errors 5 Steps for Preparing a Program for Execution (Cont) 3. When the source is error free the compiler saves it’s machine language translation into an object program 4. The Linker/Loader program: combines your object program with any additional object files that might be needed for example programs for input/output saves the final machine program as an executable 6 Software Development Method 1. Specify the problem requirement: – State the problem clearly 2. Analyze the problem: – Identify input, output and any constraints 3. Design the algorithm to solve the
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/04/2009 for the course SSE CSC 1400 taught by Professor Mhamdi during the Spring '09 term at Al Akhawayn University.

Page1 / 5

Ch1_ Pascal Introduction - Computer Programming Computers...

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

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