Sie sind auf Seite 1von 4

1 Introduction to ComputerProgramming 1.1 Objectives In this section, we will be discussing the basic components of a hardwareand software.

We will also be giving a brief overview of guages and theprogram development life cycle. Finally, different and conversions fromone type to another will be discussed.At the on, the student should be able to: Identify the different components of a computer Know about programming languages and their categories

computer, both programming lan number systems end of the less

Understand the program development life cycle and apply it in problem solving Learn the different number systems and their conversions 1.2 Introduction A computer is a machine that performs a variety of tasks according to specificin structions. It is a data processing machine which accepts data via an input device andits processor manipulates the data according to a program .The computer has two major components. The first one is the Hardware which is thetangible part of the computer. It is composed of electronic and mech anical parts.The second major component is the software which is the intangible part of a computer.It consists of data and the computer programs. Introduction to Programming I 10 1.3 Basic Components of a Computer 1.3.1 Hardware 1.3.1.1 The Central Processing Unit The processor is the brain of the computer. It contains millions of extremely tiny electrical parts. It does the fundamental computing within the system. Examples of processors are Pentium, Athlon and SPARC. 1.3.1.2 Memory The memory is where data and instructions needed by the CPU to do its appointed taskscan be found. It is divided into several storage locations which have corre spondingaddresses. The CPU accesses the memory with the use of these addresses. 1. Main Memory The main memory is very closely connected to the processor. It is used to hold p rogramsand data, that the processor is actively working with. It is not used for long-termstorage. It is sometimes called the RAM (Random Access Memory).The com puter's main memory is considered as volatile storage. This means that oncethe computer is turned off, all information residin g in the main memory is erased. 2. The Secondary Memory

The secondary memory is connected to main memory. It is used to hold programs an ddata for long term use. Examples of secondary memory are hard disks and cd-rom. Secondary memory is considered as non-volatile storage. This means that informationresiding in secondary memory is not erased a fter the computer is turned off. MainMemory Secondary Memory Property FastSlowSpeedExpensiveCheapPriceLowHighCapacityYesNoVolatile Table 1: Comparison between main memory and secondary memory Introduction to Programming I 11 J.E.D.I 1.3.1.3 Input and Output Devices Input and output devices allows a computer system to interact with the outside w orld bymoving data into and out of the system.Examples of input devices are keyb oards, mice and microphones. Examples of outputdevices are monitors, printers an d speakers. 1.3.2 Software A software is the program that a computer uses in order to function.It is kept o n some hardware device like a hard disk, but it itself is intangible. The data t hat the computeruses can be anything that a program needs. Programs acts like in structions for theprocessor. Some Types of Computer Programs:1. Systems Programs Programs that are needed to keep all the hardware and software systems runningto gether smoothly Examples: Operating Systems like Linux, Windows, Unix, Solaris, MacOS 2. Application Programs Programs that people use to get their work done Examples: Word Processor Game programs Spreadsheets 3. Compilers The computer understands only one language: machine language. Machinelanguage is in the form of ones and zeros. Since it is highly impractical for peopleto crea te programs out of zeros and ones, there must be a way of translating orconverti ng a language which we understand into machine language, for thispurpose, there exists compilers. Introduction to Programming I 12 J.E.D.I 1.4 Overview of Computer ProgrammingLanguages 1.4.1 What is a Programming Language? A programming language is a standardized communication technique for expressingi nstructions to a computer. Like human languages, each language has its own synta xand grammar.Programming languages enable a programmer to precisely specify what data a computerwill act upon, how these data will be stored/transmitted, and pr ecisely what actions totake under various circumstances.There are different type s of programming languages that can be used to createprograms, but regardless of what language you use, these instructions are translatedinto machine language t

hat can be understood by computers. 1.4.2 Categories of Programming Languages 1. High-level Programming Languages A high-level programming language is a programming language that is more user-fr iendly, to some extent platform-independent, and abstract from low-levelcomputer processor operations such as memory accesses. A programmingstatement may be tra nslated into one or several machine instructions by a compiler . Examples are Java, C, C++, Basic, Fortran 2. Low-level Assembly Language Assembly languages are similar to machine languages, but they are much easier to program in because they allow a programmer to substitute names for numbers.Assem bly languages are available for each CPU family, and each assemblyinstruction is translated into one machine instruction by an assembler program. Note: The terms "high-level" and "low-level" are inherently relative. Originally, asse mblylanguage was considered low-level and COBOL, C, etc. were considered high-le vel. Manyprogrammers today might refer to these latter languages as low-level. Introduction to Programming I 13 Introduction to Programming Download this Document for FreePrintMobileCollectionsReport Document Info and Rating alimehdi_88 Sections show all prev next 1 Introduction to Computer Programming 1.1 Objectives 1.2 Introduction 1.3 Basic Components of a Computer 1.3.1 Hardware 1.3.1.1 The Central Processing Unit 1.3.1.2 Memory 1.3.1.3 Input and Output Devices 1.3.2 Software Share & Embed Related Documents PreviousNext p. p. p. p. p. p. p. p. p. p. p. p. p. p.

p. p. p. p. p. More from this user PreviousNext 240 p. 180 p. Recent Readcasters Add a Comment This document has made it onto the Rising list! 06 / 04 / 2010 Upload a Document Search Documents Follow Us! scribd.com/scribd twitter.com/scribd facebook.com/scribd About Press Blog Partners Scribd 101 Web Stuff Scribd Store Support FAQ Developers / API Jobs Terms Copyright Privacy Copyright 2011 Scribd Inc. Language: English

Das könnte Ihnen auch gefallen