1 / 36

Ministry of higher education

Ministry of higher education . Tolo-e- aftab higher education 1 th semester Bcs 1/2/1392 . C Programming . Master Engineer: Sayed Mutahir “ Samim ” . Content . 1 st chapter Computer introduction 2 nd chapter Introduction of C language (programing ) 3 rd chapter

zilya
Download Presentation

Ministry of higher education

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ministry of higher education Tolo-e-aftab higher education 1th semester Bcs 1/2/1392

  2. C Programming Master Engineer: Sayed Mutahir “Samim”

  3. Content 1st chapter Computer introduction 2nd chapter Introduction of C language (programing ) 3rd chapter condition and loop

  4. 4th chapter Arrays 5th chapter Pointer 6th chapter Loop statement

  5. 7th chapter Functions 8th chapter Programming concept

  6. 1stchapter Introduction of computer

  7. Content • What's computer ? • What's input ? • What's output> • What's memory ? • What's process ? • What's data ?

  8. computer Its electronic machine which • Accepts the data • Process the data • Store the data • Show the output of the data

  9. 1. Accept the data (input) • Keyboard • Mouse • Touch screen • Cd drive • Dvd drive • Micro phone

  10. 2. Process the data (binary) • Computer understand only one language that’s called binary language Binary language • The language which convert all human language to machine language called binary language (0,1,0,1,0,1………)

  11. 3.Store the data (memory) • Primary memory (RAM) • Secondary memory (hard desk ) • Cash memory (processor )

  12. 4. Show the output of the data • Printer • Information • Screen • Loudspeaker • Data with process

  13. Data • Text data & numeric data • Graphic data • Video and audio data

  14. Text data & numeric data • Numbering data • Character data • Floating data • Double

  15. Numbering data • Binary • Octal • Decimal • Hexadecimal

  16. 2nd chapter Programming

  17. Content • What's programming ? • Types of programming . • System software • Language Translator • System language

  18. What's programming ? • It is that part of computer system which consist of program and techniques that are necessary to get the hardware to work. • We can see them but we can not touch them. And all computer programs are called software because they contain instructions. • We made software for computers because computer is a stupid device. • It can not work with out software

  19. Types of programming Generally there are two types of software. • Application software. • System software.

  20. Application software: • These are that software that is used to perform any specialized functions. • And these are the programs which are used for official user or for general purpose. • With out system software application software can not be installed.

  21. Types Of Application Software: There are two types of application software. • General purpose software or Application packages. • Special purpose software or customized packages.

  22. 1.1) General purpose software: • General purpose software is that software which is used for general purpose. • General purpose software has enough features to accomplish a wide variety of tasks. • And they are easily available is the market. And any one can use it according to his necessary. For example: Word, excel and games etc.

  23. 2.1) Special purpose software • Special purpose software performs a very specific task and can not change or programmed to perform a different task. • It is specific for company, institution, organization and even for a person. For example: Bank software etc.

  24. 2) System software: • All the software used to operate and maintain computer systems are called system software. • With out system software, a computer is just an expensive hunk of junk. It works as computer administrator or as a class monitor. Types of system software: • Operating system software. • Translators.

  25. 2.1) Operating system software: • A set of program use to control and monitor over all activities of a system is called operating system software. Function of operating system: • It provides interface or bridge between user and computer. • It is a heart of the system. • It manages hardware. • It manages software. • It manages memory. • It manages files. (For example save, open and edit etc).

  26. 2.2) Language Translator: • Translators translate the user’s software into language that the CPU can understand. • In other words language translators are system software that converts application software into a specific machine language.

  27. Types of translator: • Compiler. • Interpreter. • Assembler.

  28. 2.2.1) compiler: • Compiler are used for high level languages like C, C++ and Java etc. • compiler check a program as a hole and notify all errors and then convert all the instruction to machine language or Binary language. • And it is faster then the interpreter.

  29. 2.2.2) Interpreter: • Interpreter is also used for high level languages like basic language etc. • Interpreter check instructions step by step and then notify error other wise convert in to machine language or binary language.

  30. 2.2.3) Assembler: • The translator program that translates an assembly codes into the computer’s machine codes is called as assembler. • Assemblers are used for low level languages like Assemble language.

  31. System language • The computer understands only one language called machine language or binary language. • It consists of only ones and zeros. Zero is used for off and one is used for on. By level there are two types of languages. • Low level language like Machine or Assembly language. • High level language like C, C++, Basic and Java etc.

  32. Types of language Types of language are • Un-structure language. • Structure language. • Object oriented.

  33. 1) Un-structured language: • These languages are called unstructured because they do not have control structure (if-else and switch etc) and loop techniques (for and while etc). • And they do not have functions. For example: SQL HTML

  34. 2) Structured language • The languages that have control structure and that have loop techniques and functions are called structured language. For example: C Basic COBOL FORTRAN etc.

  35. 3) Object Oriented: Object: • It has Inheritance, Polymorphism, Encapsulation and classes For example: C++ Java etc.

  36. End of the lecture Master : Engineer Sayed Mutahir “Samim”

More Related