Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basics of Computer A Computer is Electronic device that can

Similar presentations


Presentation on theme: "Basics of Computer A Computer is Electronic device that can"— Presentation transcript:

1 Introduction to Hardware ,Software and Translators & C: A Very Brief History

2 Basics of Computer A Computer is Electronic device that can
accept data, store data, process data as desired, retrieve the stored data as and when required print the result in desired format. Computer consist of mostly two types of components. These components hardware and software.

3 What is Hardware? The stuff you can actually see and touch are Hardware. Some of those components, like Windows XP, and all your other programs, are software.

4

5 Other Hardware 1. Monitor 2.Motherboard 3.CPU 4. RAM 5.Expansion cards 6. Power supply 7.Optical disc drive 8. Hard disk drive 9. Keyboard 10. Mouse

6 Monitor A computer monitor is an electronic device that shows pictures. Monitors often look similar to televisions. There are three types of computer displays CRT monitor LCD monitor Video Projectors

7 Motherboard The motherboard or  main board is the main circuit board in a complex electronic system, like a computer. It is the most 'central' part of a computer. All of the different parts of the computer are connected to the motherboard. In most computers, the motherboard is a big green board, but many come in different colors like black, red and yellow.

8 CPU A Central Processing Unit (CPU) is a component in digital Computer that interprets computer program instructions and process data.[5][6] 2 Major Manufactures are there: Intel AMD

9 RAM (Random Access Memory)
Random access memory (RAM) is the memory or information storage in a computer that is used to store running programs and data for the programs. Data (information) in the RAM can be read and written quickly in any order. Normally, the random access memory is in the form of computer chips. Usually, the contents of RAM are accessible faster than other types of information storage but are lost every time the computer is turned off.

10 Power Supply Unit A power supply unit (PSU) converts mains AC to low- voltage regulated DC power for the internal components of a computer. Modern personal computers universally use a switched-mode power supply. Some power supplies have a manual selector for input voltage, while others automatically adapt to the supply voltage.

11 Optical Disk Drive An optical drive is usually a CD drive or DVD drive. Optical means it uses lenses. The drive uses a light called a laser. A laser is the most exact and powerful sort of light but the laser in the drive is very, very small [13][14] Types of Optical Drive CD Drive DVD Drive Blue-ray Drive HD-DVD Drive

12 Hard Disk Drive A hard disk drive (HDD), is something used by computers to store information. Hard disks use magnetic recording (similar to the way recording is done on magnetic tapes) to store information on rotating circular platters. The capacity of a hard drive is usually measured in gigabytes (GB). 

13 Keyboard A computer keyboard is an important device that allows a person to enter symbols like letters and numbers into a computer. It is the main input device for most computers. The most popular type is the QWERTY design, which is based on typewriter keyboards.[18][19]

14 Mouse A computer mouse is an input device that is most often used with a personal computer. Moving a mouse along a flat surface can move the on-screen cursor to different items on the screen. Items can be moved or selected by pressing the mouse buttons (called clicking).[20][21]

15 Software and its Type DEFINITION
Software is a set of programs, which is designed to perform a well defined function. A program is a sequence of instruction written to solve a particular problem. Computer hardware would be useless without software, set of instructions which command the hardware to do the logical operation is given by software.

16 System Software(Operating System ) Utility software
Computers require various types of software to make them useful. These can be classified as follows: System Software(Operating System ) Utility software Applications software System Software: It manages the computer and allows the user to communicate with the hardware. Ex. Operating System Utility software: Utility software consists of programs which are designed to help with the maintenance of the computer and to ensure sure that it works correctly and efficiently. Ex. Antiviruses

17 Application software::
Application software is a set of one or more programs designed to carry out operations for a specific application. Application software cannot run on itself but is dependent on system software to execute. Examples of application software include MS Word, MS Excel, a console game, a library management system, a spreadsheet system etc.

18 Programming Language Definition: A programming language is a special kind of instructions which is used to communicate with computer. Types: 1. High level P.L. 2. Low level P.L. High level P.L.::: A Programming language syntactically similar to English and easy to understand is called H.L.P.L. By using HLPL we are developing user interface application Ex: C,C++, Java etc. Low level P.L:: This Programming language also called assembly language. In assembly language instruction will be in symbolic format and it is not that much of easy to remember. By using assembly language or Low level PL we are developing device drivers.

19 Translator Definition: A translator is a system software which is used to convert programming language code into binary format. Types: 1. Compiler 2. Interpreter 3. Assembler Compiler: A compiler is a system software which converts entire programming language into binary format in a single step. Interpreter:: An interpreter is a system software which converts entire programming language into binary format step by step. Assembler: An assemble is a system software which converts entire assembly language into binary format

20 C HISTORY C evolved from two previous languages, BCPL (Basic Combined Programming Language) and B. BCPL developed in 1967 by Martin Richards as a language for writing OS and compilers. Ken Thompson modeled many features in his language, B, after their counterparts in BCPL, and used B to create an early versions of UNIX operating system at bell Laboratories in 1970. The C language developed from B by Dennis Ritchie at Bell Laboratories in 1972. It was named C for new language (after B). Initially, C used widely as the development language of the UNIX OS. Today, almost all new major OS are written in C including Windows.

21 Definition C is a High level,simple block structured ,procedure oriented programming language. Basic purpose of C language was to write System software such as Operating System Later C is used to writing System software as well application software also.

22 C Program Structure #include<…h> …………………………….>>>Header File void main() ……………………………….>>> Startup Function //void is function return type, and void means return nothing { Starting curly bracket(starting of program ________________________; ___________ Program Body _____________; ___________________________; } Ending curly bracket(End of program)

23 Header File Definition: Header file is collection of programs library that contain predefine functions code like printf,scanf in stdio.h . .h is a header file extension. Example: #include<stdio.h> for printf and scanf function #include<conio.h> For clsrscr() and getch() function #include<math.h> For sqrt() and other maths related function. #  Hash is preprocessor directives it means duringcompilation first preprocess the file or header file.

24 Variable and Constants
Variable : A unit for which value can be change during course of program execution. Ex: int a;//Variable Declaration Int a=5; //Variable Intialazation a=6; a=10; Now value of variable a will be 10. Constant : A unit for which value cannot be change during course of program execution. Ex: any number.

25 Comments In Program Comment means if in any program some statement not in use so we can comment it without deleting it that will not affect program result. For single line comment use // For multiple line comment use /* ________________; __________________; ___________________; */

26 Flowchart and Algorithm
Flowchart: Flowchart is a graphical representation of programs. That represent flow of program graphically. Algorithm: Algorithm is a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer. It is a step by step process.

27 PROGRAM CONTROL Symbol Name Description Rectangular or action
A process or an action such as calculation and assignment Oval Begin/start or End/stop. Indicates a completed algorithm or program flow Diamond or decision Indicates a decision to be made such as YES/NO, TRUE/FALSE, <, <= etc. Flow lines Indicates the order of the actions to be executed, connecting other symbols Small circle or connector Indicates a portion of a complete algorithm continued from the previous portion or to be continued to the next portion Input or output The input or output such as standard input or output

28 Flowchart for Largest of 3 Nos A,B,C

29 Algorithm for Largest of 3 Nos A,B,C
Step1: Read A, B, C Step2: If A > B is True, then check whether A > C, if yes then A is greatest otherwise C is greatest Step3: If A > B is False, then check whether B > C, if yes then B is greatest otherwise C is greatest Note: Like this algorithm you can write for any of the programs.

30 End-of-C History & Definition


Download ppt "Basics of Computer A Computer is Electronic device that can"

Similar presentations


Ads by Google