SlideShare une entreprise Scribd logo
1  sur  30
Introductory Concepts
Md. Imran Hossain Showrov (showrovsworld@gmail.com)
2
1
Outline
 What is a Computer?
 Computer Characteristics
 Memory
 Operating System
 Desirable Programming Characteristics
Introduction to Computers
 Today’s computers come in many forms
 Supercomputer and Mainframe
 Minicomputer
 Workstation
 Personal computer
Introduction to Computers (cont..)
 Mainframe and large minicomputers are used by many
business, universities, hospitals and government
agencies to carry out sophisticated scientific and
business calculations.
 Mainframe Computers are expensive
Introduction to Computers (cont..)
 Personal Computers are small and inexpensive.
 Personal Computers are used extremely in most of
the schools and businesses.
 EvenYou are using Personal Computer to learn C
language !!!
What is a Computer?
 A digital computer is an electronic programmable
machine that can process almost all kinds of data
 The programmable feature has made the computer
unique as compared to other machines.
What is Program?
 A program is a set of instructions, written in a
particular sequence in a computer-related language
Block Diagram of Computer
 A Computer has four main components
1. Input Device
2. Memory
3. Central Processing Unit (CPU)
4. Output device
Block Diagram of Computer (cont..)
Block Diagram of Computer (cont..)
Input device:
 The input devices are used to input data to computer.
 Example: Keyboard, Mouse etc.
 It converts the input information to the form which is
usable by the computer.
 Whenever input is supplied by the input device(s), first goes
to the memory.
Block Diagram of Computer (cont..)
Central Processing Unit (CPU):
 The CPU acts as the computer brain
 CPU is responsible for the overall working of all
components of the computer.
Block Diagram of Computer (cont..)
 CPU consists of two parts:
1. Arithmetic Logic Unit (ALU)
2. Control Unit (CU)
1. The ALU performs arithmetic operations and conducts the
comparison of information for the logical decisions.
2. The Control Unit is responsible for sending/receiving the
control signals from/to all components.
Block Diagram of Computer (cont..)
Memory:
 The memory of computer is of two types:
 Primary memory
 Secondary memory
Primary Memory:
 Primary memory is faster in speed, less in size.
 It consists of Read Only Memory (ROM) and Random
Access Memory (RAM)
Block Diagram of Computer (cont..)
Primary Memory:
 Primary memory is faster in speed, less in size.
 It consists of Read Only Memory (ROM) and Random Access
Memory (RAM).
 ROM is a very small amount of memory used to make the computer
ready to work. (This process is called booting)
 RAM contains all types of intermediate and temporary data to be used
by the CPU. In fact, CPU can work/process only that data which is
present in the RAM.
 Any data present in the secondary storage (hard disk, floppy, CD etc.)
need to be first brought to the RAM to execute a work on CPU.
Block Diagram of Computer (cont..)
Secondary Memory:
 Secondary memory is usually a very large amount of
memory which is comparatively cheaper and slower than
primary memory.
 It is Permanent in nature.Thus anything stored in secondary
memory remains available even if the computer is switched off.
Computer Characteristics
A stored program can be executed at any time.This causes
the following things to happen-
1. A set of information, called the input data, will be entered into the
computer (from the keyboard, mouse etc. ) and stored in a portion
of the computer’s memory.
2. The input data will be processed to produce certain desired
results, known as the output data.
3. The output data, and perhaps some of the input data, will be
printed onto a sheet of paper or displayed on a monitor.
Computer Characteristics
Example:
A computer has been programmed to calculate the are of a
circle using the formula given a numeric value for the radius r
as the input data.The following steps are required-
1. Read the numeric value for the radius of the circle.
2. Calculate the value of the area using the above formula. This
value will be stored, along with the input data, in the
computer’s memory.
3. Print (display) the values of the radius and the correspondant
area.
4. Stop
  
Memory
 Every piece of information stored within the memory is
encoded as some unique combination of zeros and ones.
 Zeros and ones are called bits (binary digits)
 Each bit is represented by an electronic device that is
either off (zero) or on (one).
Memory (cont..)
Example 1:
 The primary memory of a personal computer has a capacity of 2GB.
 Thus the characters/instructions can be stored in computer memory = 2
X 1024 X 1024 X 1024
= 2,14,74,83,648 bits
Example 2:
 The primary memory of a personal computer has a capacity of 3MB.
 Thus the characters/instructions can be stored in computer memory = 3
X 1024 X 1024
= 31,45,728 bits
Hardware vs. Software
 The physical components of a computer are known as
hardware.
 CPU, RAM, Hard disk, Keyboards etc.
 The set of instructions is known as program and one or
more programs along with their documentation are called
software.
Hardware vs. Software (cont..)
 Software used on computer can be classified as-
 System Software: This category includes the software that
are used to define functioning of any computer irrespective of
the area/application where it is to be used.
 Application Software: In order to use a computer for a
specific task, it needs to be instructed accordingly. Suck
instructions are provided by application software.
Operating System
 Operating System (OS) is a system software that helps the
users to operate the computer efficiently.
 The primary purpose of OS is to act as an interface
between the computer and the user.
 There are three responsibilities of an operating system:
1. To provide an interface between the user and the computer
hardware.
2. To manage the resources of the computer
3. To provide support for storing and executing other softwares
Compiler and Interpreter
 The compiler is a kind of system that translates the programs
written in high level language to machine language. The compiler
converts whole program into machine language.
 Example: C-compiler, Java-compiler etc.
 Interpreter is a similar software like compiler which is used to
convert high level language programs to machine language but its
working is different from that of the compiler. Interpreter converts
high level language program one line at a time to machine language
and then executes that converted line.Then the next line is
converted and executed and so on….
How to develop a program?
1. Analyze the problem to identify inputs, outputs and processing
requirements.
2. Identify various processing steps needed to solve the problem and
represent them in particular way (algorithm, pseudo code, flow chart
etc.)
3. Refine step 2 in a way that all the processing steps are detailed enough.
4. Add the syntax of the programming language to the above
representation.
5. Type the program and compile it after removing all syntax errors.
6. Run the program and check it with different types of input to verify its
correctness. If there is any mistake, correct it and continue with step 4.
Algorithm
 Algorithm is a complete step by step representation of the solution of a
problem, represented in English like language.
 Problem:Write a program to find the average of n numbers.
 Algorithm:
– Read the value of n.
– Assign 0 to sum.
– Repeat n times.
– Read number.
– Add number to sum
– End repeat
– Divide sum by n to get the average.
– Print average.
Pseudo Code
 Pseudo Code is a formal representation that represents every step in a formal
way which is very close to the actual programming language representation.
 Pseudo code: (For same problem given to previous slide)
1. START
2. read n
3. sum 0
4. for i 1 to n do
5. read number (i)
6. sum sum + number (i)
7. end for
8. average sum/n
9. print average
10. STOP
Flow Chart
 Flow chart is the graphical symbols to represent the steps.
Software Development Life Cycle
 In order to develop any program/software, the following
five phases should be followed:
1. Requirement Analysis
2. Software Design
3. Software Coding
4. Software Testing
5. Software Installation and Maintenance
Desirable Programming Characteristics
1. Integrity: This refers to the accuracy of the calculations.
2. Clarity: Refers to the overall readability of the program, with
particular emphasis on its underlying logic.
3. Simplicity: The clarity and accuracy of a program are usually are
usually enhanced by keeping things as simple as possible.
4. Efficiency: It is concerned with execution speed and efficient
memory utilization.
5. Modularity: Many programs can be broken down into a series of
identifiable subtasks.
6. Generality: We may design a program to read in the values of
certain key parameters rather than placing fixed values into the
program.
Lecture 2 - Introductory Concepts

Contenu connexe

Tendances

Computer and Programming
Computer and Programming Computer and Programming
Computer and Programming Mahsa Ch
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating systemsonykhan3
 
computer language with full detail
computer language with full detail computer language with full detail
computer language with full detail sonykhan3
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingSangheethaa Sukumaran
 
Introduction to Computer and Programming - Lecture 01
Introduction to Computer and Programming - Lecture 01Introduction to Computer and Programming - Lecture 01
Introduction to Computer and Programming - Lecture 01hassaanciit
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem SolvingSukhendra Singh
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Sehrish Rafiq
 
Computer Programs & System Softwares
Computer Programs & System SoftwaresComputer Programs & System Softwares
Computer Programs & System SoftwaresAbijah Naresh Jumani
 
Introduction To Computer and Java
Introduction To Computer and JavaIntroduction To Computer and Java
Introduction To Computer and JavaPRN USM
 
Parts of a computer crossword: Computer Science
Parts of a computer crossword: Computer ScienceParts of a computer crossword: Computer Science
Parts of a computer crossword: Computer Sciencenicamos
 
Perfect papers software
Perfect papers   softwarePerfect papers   software
Perfect papers softwareguest0a1ce99
 
Generations of programming language
Generations of programming languageGenerations of programming language
Generations of programming languageJamie Hyman
 

Tendances (20)

Computer and Programming
Computer and Programming Computer and Programming
Computer and Programming
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating system
 
computer language with full detail
computer language with full detail computer language with full detail
computer language with full detail
 
Language processors
Language processorsLanguage processors
Language processors
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Programming
ProgrammingProgramming
Programming
 
Introduction to Computer and Programming - Lecture 01
Introduction to Computer and Programming - Lecture 01Introduction to Computer and Programming - Lecture 01
Introduction to Computer and Programming - Lecture 01
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
CISY 105 Chapter 1
CISY 105 Chapter 1CISY 105 Chapter 1
CISY 105 Chapter 1
 
Assembly language
Assembly languageAssembly language
Assembly language
 
Software Concepts Notes
Software Concepts NotesSoftware Concepts Notes
Software Concepts Notes
 
Computer definition
Computer definitionComputer definition
Computer definition
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
 
Computer Programs & System Softwares
Computer Programs & System SoftwaresComputer Programs & System Softwares
Computer Programs & System Softwares
 
Introduction To Computer and Java
Introduction To Computer and JavaIntroduction To Computer and Java
Introduction To Computer and Java
 
Enee114 01
Enee114 01Enee114 01
Enee114 01
 
Introduction to Computer System
Introduction to Computer SystemIntroduction to Computer System
Introduction to Computer System
 
Parts of a computer crossword: Computer Science
Parts of a computer crossword: Computer ScienceParts of a computer crossword: Computer Science
Parts of a computer crossword: Computer Science
 
Perfect papers software
Perfect papers   softwarePerfect papers   software
Perfect papers software
 
Generations of programming language
Generations of programming languageGenerations of programming language
Generations of programming language
 

Similaire à Lecture 2 - Introductory Concepts

Similaire à Lecture 2 - Introductory Concepts (20)

C with lab
C with labC with lab
C with lab
 
PPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxPPS UNIT 1- R18.docx
PPS UNIT 1- R18.docx
 
Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptx
 
Computer fundamental
Computer fundamentalComputer fundamental
Computer fundamental
 
C program full materials.pdf
C program  full materials.pdfC program  full materials.pdf
C program full materials.pdf
 
Chapter 1.pptx
Chapter 1.pptxChapter 1.pptx
Chapter 1.pptx
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
Computer basics and i.o devices
Computer basics and i.o devicesComputer basics and i.o devices
Computer basics and i.o devices
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
UNIT1IT SKILLS.pptx
UNIT1IT SKILLS.pptxUNIT1IT SKILLS.pptx
UNIT1IT SKILLS.pptx
 
PPS Unit-1.pdf
PPS Unit-1.pdfPPS Unit-1.pdf
PPS Unit-1.pdf
 
C LECTURE NOTES FULL_1.pdf
C LECTURE NOTES FULL_1.pdfC LECTURE NOTES FULL_1.pdf
C LECTURE NOTES FULL_1.pdf
 
6272 cnote
6272 cnote6272 cnote
6272 cnote
 
C progrmming
C progrmmingC progrmming
C progrmming
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.ppt
 
C q 1
C q 1C q 1
C q 1
 
Basic of computer ( miit )
Basic of computer ( miit )Basic of computer ( miit )
Basic of computer ( miit )
 
Computer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cppComputer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cpp
 
It tools and buisness system.docx
It tools and buisness system.docxIt tools and buisness system.docx
It tools and buisness system.docx
 

Plus de Md. Imran Hossain Showrov

Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Md. Imran Hossain Showrov
 

Plus de Md. Imran Hossain Showrov (18)

Lecture 21 - Preprocessor and Header File
Lecture 21 - Preprocessor and Header FileLecture 21 - Preprocessor and Header File
Lecture 21 - Preprocessor and Header File
 
Lecture 20 - File Handling
Lecture 20 - File HandlingLecture 20 - File Handling
Lecture 20 - File Handling
 
Lecture 19 - Struct and Union
Lecture 19 - Struct and UnionLecture 19 - Struct and Union
Lecture 19 - Struct and Union
 
Lecture 18 - Pointers
Lecture 18 - PointersLecture 18 - Pointers
Lecture 18 - Pointers
 
Lecture 16 - Multi dimensional Array
Lecture 16 - Multi dimensional ArrayLecture 16 - Multi dimensional Array
Lecture 16 - Multi dimensional Array
 
Lecture 17 - Strings
Lecture 17 - StringsLecture 17 - Strings
Lecture 17 - Strings
 
Lecture 15 - Array
Lecture 15 - ArrayLecture 15 - Array
Lecture 15 - Array
 
Lecture 14 - Scope Rules
Lecture 14 - Scope RulesLecture 14 - Scope Rules
Lecture 14 - Scope Rules
 
Lecture 13 - Storage Classes
Lecture 13 - Storage ClassesLecture 13 - Storage Classes
Lecture 13 - Storage Classes
 
Lecture 12 - Recursion
Lecture 12 - Recursion Lecture 12 - Recursion
Lecture 12 - Recursion
 
Lecture 11 - Functions
Lecture 11 - FunctionsLecture 11 - Functions
Lecture 11 - Functions
 
Lecture 10 - Control Structures 2
Lecture 10 - Control Structures 2Lecture 10 - Control Structures 2
Lecture 10 - Control Structures 2
 
Lecture 8- Data Input and Output
Lecture 8- Data Input and OutputLecture 8- Data Input and Output
Lecture 8- Data Input and Output
 
Lecture 9- Control Structures 1
Lecture 9- Control Structures 1Lecture 9- Control Structures 1
Lecture 9- Control Structures 1
 
Lecture 7- Operators and Expressions
Lecture 7- Operators and Expressions Lecture 7- Operators and Expressions
Lecture 7- Operators and Expressions
 
Lecture 6- Intorduction to C Programming
Lecture 6- Intorduction to C ProgrammingLecture 6- Intorduction to C Programming
Lecture 6- Intorduction to C Programming
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language
 
Lecture 1- History of C Programming
Lecture 1- History of C Programming Lecture 1- History of C Programming
Lecture 1- History of C Programming
 

Dernier

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 

Dernier (20)

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 

Lecture 2 - Introductory Concepts

  • 1. Introductory Concepts Md. Imran Hossain Showrov (showrovsworld@gmail.com) 2 1
  • 2. Outline  What is a Computer?  Computer Characteristics  Memory  Operating System  Desirable Programming Characteristics
  • 3. Introduction to Computers  Today’s computers come in many forms  Supercomputer and Mainframe  Minicomputer  Workstation  Personal computer
  • 4. Introduction to Computers (cont..)  Mainframe and large minicomputers are used by many business, universities, hospitals and government agencies to carry out sophisticated scientific and business calculations.  Mainframe Computers are expensive
  • 5. Introduction to Computers (cont..)  Personal Computers are small and inexpensive.  Personal Computers are used extremely in most of the schools and businesses.  EvenYou are using Personal Computer to learn C language !!!
  • 6. What is a Computer?  A digital computer is an electronic programmable machine that can process almost all kinds of data  The programmable feature has made the computer unique as compared to other machines.
  • 7. What is Program?  A program is a set of instructions, written in a particular sequence in a computer-related language
  • 8. Block Diagram of Computer  A Computer has four main components 1. Input Device 2. Memory 3. Central Processing Unit (CPU) 4. Output device
  • 9. Block Diagram of Computer (cont..)
  • 10. Block Diagram of Computer (cont..) Input device:  The input devices are used to input data to computer.  Example: Keyboard, Mouse etc.  It converts the input information to the form which is usable by the computer.  Whenever input is supplied by the input device(s), first goes to the memory.
  • 11. Block Diagram of Computer (cont..) Central Processing Unit (CPU):  The CPU acts as the computer brain  CPU is responsible for the overall working of all components of the computer.
  • 12. Block Diagram of Computer (cont..)  CPU consists of two parts: 1. Arithmetic Logic Unit (ALU) 2. Control Unit (CU) 1. The ALU performs arithmetic operations and conducts the comparison of information for the logical decisions. 2. The Control Unit is responsible for sending/receiving the control signals from/to all components.
  • 13. Block Diagram of Computer (cont..) Memory:  The memory of computer is of two types:  Primary memory  Secondary memory Primary Memory:  Primary memory is faster in speed, less in size.  It consists of Read Only Memory (ROM) and Random Access Memory (RAM)
  • 14. Block Diagram of Computer (cont..) Primary Memory:  Primary memory is faster in speed, less in size.  It consists of Read Only Memory (ROM) and Random Access Memory (RAM).  ROM is a very small amount of memory used to make the computer ready to work. (This process is called booting)  RAM contains all types of intermediate and temporary data to be used by the CPU. In fact, CPU can work/process only that data which is present in the RAM.  Any data present in the secondary storage (hard disk, floppy, CD etc.) need to be first brought to the RAM to execute a work on CPU.
  • 15. Block Diagram of Computer (cont..) Secondary Memory:  Secondary memory is usually a very large amount of memory which is comparatively cheaper and slower than primary memory.  It is Permanent in nature.Thus anything stored in secondary memory remains available even if the computer is switched off.
  • 16. Computer Characteristics A stored program can be executed at any time.This causes the following things to happen- 1. A set of information, called the input data, will be entered into the computer (from the keyboard, mouse etc. ) and stored in a portion of the computer’s memory. 2. The input data will be processed to produce certain desired results, known as the output data. 3. The output data, and perhaps some of the input data, will be printed onto a sheet of paper or displayed on a monitor.
  • 17. Computer Characteristics Example: A computer has been programmed to calculate the are of a circle using the formula given a numeric value for the radius r as the input data.The following steps are required- 1. Read the numeric value for the radius of the circle. 2. Calculate the value of the area using the above formula. This value will be stored, along with the input data, in the computer’s memory. 3. Print (display) the values of the radius and the correspondant area. 4. Stop   
  • 18. Memory  Every piece of information stored within the memory is encoded as some unique combination of zeros and ones.  Zeros and ones are called bits (binary digits)  Each bit is represented by an electronic device that is either off (zero) or on (one).
  • 19. Memory (cont..) Example 1:  The primary memory of a personal computer has a capacity of 2GB.  Thus the characters/instructions can be stored in computer memory = 2 X 1024 X 1024 X 1024 = 2,14,74,83,648 bits Example 2:  The primary memory of a personal computer has a capacity of 3MB.  Thus the characters/instructions can be stored in computer memory = 3 X 1024 X 1024 = 31,45,728 bits
  • 20. Hardware vs. Software  The physical components of a computer are known as hardware.  CPU, RAM, Hard disk, Keyboards etc.  The set of instructions is known as program and one or more programs along with their documentation are called software.
  • 21. Hardware vs. Software (cont..)  Software used on computer can be classified as-  System Software: This category includes the software that are used to define functioning of any computer irrespective of the area/application where it is to be used.  Application Software: In order to use a computer for a specific task, it needs to be instructed accordingly. Suck instructions are provided by application software.
  • 22. Operating System  Operating System (OS) is a system software that helps the users to operate the computer efficiently.  The primary purpose of OS is to act as an interface between the computer and the user.  There are three responsibilities of an operating system: 1. To provide an interface between the user and the computer hardware. 2. To manage the resources of the computer 3. To provide support for storing and executing other softwares
  • 23. Compiler and Interpreter  The compiler is a kind of system that translates the programs written in high level language to machine language. The compiler converts whole program into machine language.  Example: C-compiler, Java-compiler etc.  Interpreter is a similar software like compiler which is used to convert high level language programs to machine language but its working is different from that of the compiler. Interpreter converts high level language program one line at a time to machine language and then executes that converted line.Then the next line is converted and executed and so on….
  • 24. How to develop a program? 1. Analyze the problem to identify inputs, outputs and processing requirements. 2. Identify various processing steps needed to solve the problem and represent them in particular way (algorithm, pseudo code, flow chart etc.) 3. Refine step 2 in a way that all the processing steps are detailed enough. 4. Add the syntax of the programming language to the above representation. 5. Type the program and compile it after removing all syntax errors. 6. Run the program and check it with different types of input to verify its correctness. If there is any mistake, correct it and continue with step 4.
  • 25. Algorithm  Algorithm is a complete step by step representation of the solution of a problem, represented in English like language.  Problem:Write a program to find the average of n numbers.  Algorithm: – Read the value of n. – Assign 0 to sum. – Repeat n times. – Read number. – Add number to sum – End repeat – Divide sum by n to get the average. – Print average.
  • 26. Pseudo Code  Pseudo Code is a formal representation that represents every step in a formal way which is very close to the actual programming language representation.  Pseudo code: (For same problem given to previous slide) 1. START 2. read n 3. sum 0 4. for i 1 to n do 5. read number (i) 6. sum sum + number (i) 7. end for 8. average sum/n 9. print average 10. STOP
  • 27. Flow Chart  Flow chart is the graphical symbols to represent the steps.
  • 28. Software Development Life Cycle  In order to develop any program/software, the following five phases should be followed: 1. Requirement Analysis 2. Software Design 3. Software Coding 4. Software Testing 5. Software Installation and Maintenance
  • 29. Desirable Programming Characteristics 1. Integrity: This refers to the accuracy of the calculations. 2. Clarity: Refers to the overall readability of the program, with particular emphasis on its underlying logic. 3. Simplicity: The clarity and accuracy of a program are usually are usually enhanced by keeping things as simple as possible. 4. Efficiency: It is concerned with execution speed and efficient memory utilization. 5. Modularity: Many programs can be broken down into a series of identifiable subtasks. 6. Generality: We may design a program to read in the values of certain key parameters rather than placing fixed values into the program.