Task 01(SP)
Task 01(SP)
OF PROGRAMMING
OBJECTIVES
• What is program , programming &
programing Language.
• Birth of programming.
• Generations of programming
language.
3
WHAT IS MEAN BY A
PROGRAM?
WHAT IS MEAN BY A
PROGRAMMING?
WHAT IS MEAN BY A
PROGRAMMING LANGUAGE?
WHAT IS MEAN BY A
PROGRAMMING LANGUAGE?
WHAT IS MEAN BY A
PROGRAMMING LANGUAGE?
commands.
WHAT IS MEAN BY A
PROGRAMMING LANGUAGE?
and etc.
GENERATION OF
PROGRAMMING
LANGUAGE
10
LANGUAGE
▪ The first generation programming language is also called low-level
programming language.
LANGUAGE
LANGUAGE
▪ The third generation programming languages were designed to
overcome the various limitations of the first and second
generation programming languages.
▪ The third generation is also called procedural language and It’s
also called High-Level Programming Language.
▪ A program in this language needs to be translated into machine
language using a Compiler/ Interpreter.
▪ Example - FORTRAN-II TO IV, COBOL,PASCAL, ALGOL, COBOL,
C++, C
FOURTH GENERATION
15
LANGUAGE
▪ The fourth-generation language is also called a non – procedural
language.
▪ The languages of this generation were considered as very high-
level programming languages required a lot of time and effort
that affected the productivity of a programmer.
▪ It enables users to access the database.
▪ The languages were designed and developed to reduce the time,
cost and effort needed to develop different types of software
applications.
▪ Examples - SQL, Foxpro, Focus, Perl, Python, Ruby, and etc.
FIFTH GENERATION
16
LANGUAGE
QUESTIONS
1. Who is a programmer?
2. What is the meaning of Software? And elaborate the system
types|?
3. What is the importance of programming?
4. Compare low level programming languages and high level
programming languages.
PSEUDOCODE
19
WHAT IS PSEUDOCODE?
WHAT IS PSEUDOCODE?
WHAT IS PSEUDOCODE?
▪ Let us see simple English terms used in an pseudo
code.
✓ BEGIN - To indicate a beginning
✓ END - To indicate an end
✓ INPUT , READ , GET - To indicate an input
✓ OUTPUT, DISPLAY , SHOW - To show an
output
✓ PROCESS, CALCULATE - To indicate a process
22
WHAT IS PSEUDOCODE?
WHAT IS PSEUDOCODE?
BEGIN
Sum=0
Avg=0
INPUT n1,n2,n3
CALCULATE Sum = n1* n2*n3
CALCULATE Avg=Sum/3
DISPLAY Sum,Avg
END
SELECTION
▪ Finding the big number
BEGIN
READ n1,n2
IF n1>n2 THEN
Large = n1
ELSE
Large = n2
ENDIF
DISPLAY Large
END
▪ Determine if a given positive number is Even or Odd
BEGIN
READ number as N
IF N%2=0THEN
DISPLAY “EVEN NUMBER”
ELSE
DISPLAY “ODD NUMBER”
END
1. Write a Pseudocode to find the grade Pass or
“Fail” (Marks >=50)
2. Calculate students grade using the scenario
Marks >=85 Grade = A
Marks >=75 Grade = B
Marks >=60 Grade = C
Marks >=45 Grade = S
Else Grade = F
REPETITION
▪ Finding the total of 1 to 5
BEGIN
N=1
Sum=0
WHILE N<=5
Sum= Sum+N
N= N+1
ENDWHILE
DISPLAY SUM
END
1. Find the multiplication of 1 to 10
numbers
2. Print the word “Hello World” in 15 times
3. Find the sum of 10 numbers and
calculate the average
4. Find the Factorial value of number 10
31
QUESTIONS
1. What is structured programming and unstructured
programming?
2. Define the term Sequential processing and Concurrent
processing?
3. What is Algorithm?
4. What are the advantages in Pseudocode?
5. What is variables ,data types in Pseudocode?