SlideShare a Scribd company logo
Program Concept
Program is a group of sequential statements; which are executing line by line. It specifies
the programming task and module of the program. It wills easy the effort of the program and
helps to achieve the goal of user. So in another word we can say, “Program is a group of
statement or instruction which are executing line by line by compiler or interpreter to get the goal
of programs.”
The software should be designed effectively so as to meet its objective of user
satisfaction. Lawrence Peter has stated “Software design technology is a system not a secret.”
According to Sethi89, “Language must help us write a good programs, where a program
is a good if it is easy to read, easy to understand, and easy to modify.”
Therefore, we can say, “A programming language intended to be used by a person to
express a process by which a computer can solve a problem.”
4 key components of definition: -
A. Computer: - A machine that will carry out the process described by a program.
B. Person: - A person is a programmer who serves as the source of the communication.
C. Process ; - Process is the activity being described by the program.
D. Problem: - Problem is a actual system or environment where the problem arises.
Language to satisfy 4 components: -
A. Imperative: - It is geared towards easy machine translation.
B. Logical (Declarative): - It geared towards people and the logical thinking process.
C. Functional: - It focused on the function or operation being performed.
D. Object – Oriented: - It geared towards the problem domain.
Good programs will minimum the effort of the user. It will also reduce the effort of the
time efficiency and line of programming code. The concept of program will shows the quality of
the program, and quality of services.
Why study programming languages: -
i. Organize computations
ii. Different problems have different needs.
iii. Efficient Programming
iv. Language Providers
1. Computation model
2. Data types and operation
3. Abstraction facilities
4. Checking and enforcement.
A good program will show the following characteristics: -
1. Good program will easily understand by programmer as well as new user.
2. Good program will easily describe the role of the every step.
3. Good program will not increase the length of the program. They will increase the
efficiency of the program.
4. Good program will decrease the line of code.
5. In good program functions are used.
6. Good program will hide the complexity of the program.
7. Good program will use array also as per programming requirement.
8. Good program will not bind the user.
9. The source code of program will well define.
10. The good program will easily modify in future.
11. The vocabulary of the language should resemble.
12. The language and its class or function library should be fully documented.
13. The logic of the program is easily so that in future it will easily modify as per
requirement.
14. The good program normally defined top to down or bottom to top approach.
15. The program should be portable.
16. A good program must have self-documenting code.
17. Good program must have user friendly.
18. Good programs are more reliable.
Stages of Program Development Process: -
1. Creak the problem: - This is the first stage of programming development. In this stage the
problem is creaked and an algorithm is formulated which gives the solution for the
problem.
2. Code the algorithm: - In this stage, the algorithm is translated into a program. The
program is normally known as source code. This process is call coding.
3. Compile the program: - After feeding the program, next step is to compile it. Compilation
is a process to convert the source code into object code.
4. Execute the program: - After compilation of an error free program, the program is
executed. This phase is call run-time, the phase of program executing during which
program instruction are carried out.
A good programmer will define the program with efficient programming code and he will
define the program into three (3) types: -
1. Algorithm
2. Flow Charts
3. Source Code.
1. Algorithm: - In mathematics and computer science, an algorithm is a step-by-step
procedure for calculations. Algorithms are used for calculation, data processing and
automated reasoning. In short we cam saw that an algorithm is a suitable process to
execute the program step-by-step and it will follow the instruction given by user as well
as program. It will also show the efficient way and tell us “How to execute the program
perfectly. It will free the programming environment and it will easily convert into any
programming language.
Definition: -
1. “An algorithm is an effective method expressed as a finite list of well-defined
instructions for calculation a function.” Starting an initial state and initial input the
instruction describes a computation that, when executed, proceeds through a finite
number of well-defined successive states, eventually producing “output” and
terminating at a final ending state. The transition from one state to the next is not
necessarily deterministic; some algorithm, known as randomized algorithm,
incorporate random input.
2. An informal definition could be “a set of rules that precisely defines a sequence of
operation”, which would include all computer programs, including program that do
not perform numeric calculation. Generally, a program is only an algorithm if it stops
eventually.
3. An algorithm is precise instruction (in language understood by “the computer”) for a
fast, efficient, “good” process that specifies the “moves” of “the computer” (machine
or human, equipped with the necessary internally contained information and
capabilities to find decode, and then process arbitrary input integers/symbols m and n,
symbols + and = … and “effectively” produce, in a “reasonable” time, output-integer
y at a specified place and in specified format.
4. “Well ordered collection of unambiguous and effectively computable operation, that
when executed, produces a result and halts in a finite of time.”
Characteristics of an algorithm: -
1. Well Ordered: - The steps are in a clear order.
2. Unambiguous: - A computing agent without further simplification understands
the operations described.
3. Effectively Computable: - The computing agent can actually carry out the
operation.
Method for Developing an algorithm: -
1. Define the Problem: - State the problem you are trying to solve in clear and
concise terms.
2. List the Input: - Information needed to solve the Problem.
3. List the Output: - What the algorithm will produce as a result.
4. Describes the steps needed to convert or manipulate the inputs to produce the
output: - Start at a high level first, and keep refining the steps until them
effectively computable operation.
5. Test the algorithm: - Choose data sets and verify that your algorithm works!
The concept of algorithm is also used to define the notion of decidability. That
notation is central for explaining how format system comes into being starting from a
small set of axioms and rules. In logic, the time that an algorithm requires to complete
cannot be measured, as it is not apparently related with our customary physical
dimension. From such uncertainties, than characterize ongoing work, stems the
formalization.
Algorithm can be expressed in many kinds of notation, natural languages, pseudo
code, flowcharts, programming languages or control tables. Natural language expressions
of algorithm tend to be verbose and ambiguous, and are rarely used for complex or
technical algorithms.
Examples of Algorithm: -
1. The bus algorithm: -
i. Outside the railway station, catch bus number 1.
ii. Transfer to bus 6 near Gol building, Jalori Gate.
iii. Get off near GDMCMT.
iv. Walk two blocks east to my house.
2. Add two number: -
i. Take two number as input from user.
ii. Take third variable to store the result.
iii. Add two input variable and transfer the sum into third variable.
iv. Print third variable value at computer screen.
3. To find out simple interest: -
i. To determine the simple interest, we need three basic value such as principal,
rate and time. The value of these value provide by user or program.
ii. To process these variable we must know formula of Simple interest such as
Si= (principal * rate * time)/ 100.
iii. Si is the store variable and if we want to print total amount then we need
addition variable tot_amount = principal + Si.
iv. After calculating Si and tot_amount, print the result.
These algorithms clearly show that “Algorithm is a process to develop the good
program and it would free from any programming language.” In computer programming,
there are often many different algorithms to accomplish any given task. Each algorithm
has advantage and disadvantage in different situation. Sorting is one place where a lot of
research has been done, because computer spends a lot of time sorting list.
Algorithms also provide some addition feature such as -
1. Efficiency: - Efficient algorithm must be use to solve such problems considering
the time and cost factor involved in each algorithm.
2. Abstraction: - Algorithms provide a level of abstraction in solving problem
because many seemingly complicated problems can be distilled into simpler ones
for which well-known algorithm exist. Once we see a more complicated problem
in simpler light, we can thing of the simpler problem as just an abstraction of the
more complicated one.
3. Reusability: - Algorithms are often reusable in many different situations. Since
many well-known algorithm are the generalization s of more complicated ones,
and since many complicated problem can be distilled into simpler ones.
Advantage of Good Algorithm: -
1. Methods have been developed for the analysis of algorithms.
2. Different algorithms may complete the same task with a different set of instructions in
less or more time, space, or 'effort' than others.
3. The analysis and study of algorithms is a discipline of computer science, and is often
practiced abstractly without the use of a specific programming language or
implementation.
4. Algorithm analysis resembles other mathematical disciplines in that it focuses on the
underlying properties of the algorithm and not on the specifics of any particular
implementation.
5. Empirical testing is useful because it may uncover unexpected interactions that affect
performance.
6. An algorithm may be viewed as controlled logical deduction.
7. A good algorithm may provide a good programming approach.
8. Algorithm may provide time saving and improve to understand new programming
metrology.
9. Algorithm may also provide minimum effort to understand complex problem.
10. Algorithm may also use to solve new problem using different algorithm.
11. Algorithms are not depending any programming language.
12. Algorithms are provide a scientific view to a new user.
Disadvantage of Algorithm: -
1. Algorithms not follow any programming language so it is difficult to write down.
2. In algorithm approach, no pre specified method will define.
3. Algorithms are complex to understand for new user.
4. For one problem, it provides set of solution, so it is difficult to choose correct
approach.
5. A good mathematical person may design a good algorithm and to easily understand.
6. Algorithms can execute one statement at a time so it will also follow top to down
approach.
7. Algorithms can be classified by the amount of time they need to complete compared
to their input size.
Real example of Algorithm: -
1. Write an algorithm to find the larger number among three number A, B and C.
1. Read the number A, B and C
2. If A>B then go to step 3 else go to step 4.
3. If A>C then go to step 5 else go to step 6.
4. If B>C then go to step 7 else go to step 6.
5. Print A is the largest and go to step 8.
6. Print C is the largest and go to step 8.
7. Print B is the largest and go to step 8.
8. Stop.

More Related Content

What's hot

Algorithms notes 2 tutorials duniya
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Program design and problem solving techniques
Program design and problem solving techniquesProgram design and problem solving techniques
Program design and problem solving techniques
Dokka Srinivasu
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
Trivuz ত্রিভুজ
 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals
ArghodeepPaul
 
Problem solving (C++ Programming)
Problem solving (C++ Programming)Problem solving (C++ Programming)
Problem solving (C++ Programming)
Umair Younas
 
Cp 111 lecture 2
Cp 111 lecture 2Cp 111 lecture 2
Cp 111 lecture 2
HafidhyMasoud
 
Computer programing 111 lecture 2
Computer programing 111 lecture 2Computer programing 111 lecture 2
Computer programing 111 lecture 2
ITNet
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle
Frankie Jones
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
Namrah Erum
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Raja Hamid
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
Mani Kandan
 
Phases of-compiler
Phases of-compilerPhases of-compiler
Phases of-compiler
Zahidul Islam Razu
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
A. S. M. Shafi
 
Compiler design
Compiler designCompiler design
Compiler design
nazmul hoque
 

What's hot (20)

Algorithms notes 2 tutorials duniya
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniya
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Program design and problem solving techniques
Program design and problem solving techniquesProgram design and problem solving techniques
Program design and problem solving techniques
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Beekman5 std ppt_13
 
Problem solving (C++ Programming)
Problem solving (C++ Programming)Problem solving (C++ Programming)
Problem solving (C++ Programming)
 
Cp 111 lecture 2
Cp 111 lecture 2Cp 111 lecture 2
Cp 111 lecture 2
 
Computer programing 111 lecture 2
Computer programing 111 lecture 2Computer programing 111 lecture 2
Computer programing 111 lecture 2
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Programming and problem solving with c++, 3rd edition
Programming and problem solving with c++, 3rd editionProgramming and problem solving with c++, 3rd edition
Programming and problem solving with c++, 3rd edition
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
 
The Programming Process
The Programming ProcessThe Programming Process
The Programming Process
 
Phases of-compiler
Phases of-compilerPhases of-compiler
Phases of-compiler
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Compiler design
Compiler designCompiler design
Compiler design
 

Viewers also liked

Actividad #4. Procesador de texto
Actividad #4. Procesador de textoActividad #4. Procesador de texto
Actividad #4. Procesador de texto
Docentic Inecicu
 
Blog
BlogBlog
The Power of Tracking Your Time
The Power of Tracking Your TimeThe Power of Tracking Your Time
The Power of Tracking Your Time
Lorraine Pirihi
 
Numap
NumapNumap
Klavier1
Klavier1Klavier1
Klavier1
norwegerli
 
Mitokondria
MitokondriaMitokondria
Understanding the Form 990
Understanding the Form 990Understanding the Form 990
Understanding the Form 990
Xeo Sterling
 
«не бойся, мы с тобой детский телефон доверия на защите детства
«не бойся, мы с тобой детский телефон доверия на защите детства«не бойся, мы с тобой детский телефон доверия на защите детства
«не бойся, мы с тобой детский телефон доверия на защите детства
vitkri
 
Actividad #5. Tipos de computador
Actividad #5. Tipos de computadorActividad #5. Tipos de computador
Actividad #5. Tipos de computador
Docentic Inecicu
 
Resuming internalization at starbucks
Resuming internalization at starbucksResuming internalization at starbucks
Resuming internalization at starbucks
Fortune Institute of International Business
 

Viewers also liked (14)

Actividad #4. Procesador de texto
Actividad #4. Procesador de textoActividad #4. Procesador de texto
Actividad #4. Procesador de texto
 
Blog
BlogBlog
Blog
 
The Power of Tracking Your Time
The Power of Tracking Your TimeThe Power of Tracking Your Time
The Power of Tracking Your Time
 
Numap
NumapNumap
Numap
 
Klavier1
Klavier1Klavier1
Klavier1
 
Mitokondria
MitokondriaMitokondria
Mitokondria
 
104630
104630104630
104630
 
Understanding the Form 990
Understanding the Form 990Understanding the Form 990
Understanding the Form 990
 
cv
cvcv
cv
 
«не бойся, мы с тобой детский телефон доверия на защите детства
«не бойся, мы с тобой детский телефон доверия на защите детства«не бойся, мы с тобой детский телефон доверия на защите детства
«не бойся, мы с тобой детский телефон доверия на защите детства
 
Certificate 5
Certificate 5Certificate 5
Certificate 5
 
Actividad #5. Tipos de computador
Actividad #5. Tipos de computadorActividad #5. Tipos de computador
Actividad #5. Tipos de computador
 
Hello 6+7+8
Hello 6+7+8Hello 6+7+8
Hello 6+7+8
 
Resuming internalization at starbucks
Resuming internalization at starbucksResuming internalization at starbucks
Resuming internalization at starbucks
 

Similar to Program concep sequential statements

Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
TejaswiB4
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer ProgrammingProf. Erwin Globio
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
praveena p
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
NayanChandak1
 
Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
Praveen M Jigajinni
 
PDLC.pptx
PDLC.pptxPDLC.pptx
PDLC.pptx
marysj3
 
Algorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfAlgorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdf
MaryJacob24
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
Appili Vamsi Krishna
 
GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdf
Asst.prof M.Gokilavani
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
Alok Jain
 
01CHAP_1.PPT
01CHAP_1.PPT01CHAP_1.PPT
01CHAP_1.PPT
ManoRanjani30
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
AnuragJoshi813963
 
ProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdfProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdf
lailoesakhan
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
mshoaib15
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
Saurabh846965
 
265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answers
vithyanila
 
4 coding from algorithms
4 coding from algorithms4 coding from algorithms
4 coding from algorithmshccit
 
PROBLEM SOLVING
PROBLEM SOLVINGPROBLEM SOLVING
PROBLEM SOLVING
shahzadebaujiti
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 

Similar to Program concep sequential statements (20)

Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
 
Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
 
PDLC.pptx
PDLC.pptxPDLC.pptx
PDLC.pptx
 
Algorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfAlgorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdf
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 
GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdf
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 
01CHAP_1.PPT
01CHAP_1.PPT01CHAP_1.PPT
01CHAP_1.PPT
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
ProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdfProgFund_Lecture7_Programming_Algorithm.pdf
ProgFund_Lecture7_Programming_Algorithm.pdf
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
 
265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answers
 
C++ good tutorial
C++ good tutorialC++ good tutorial
C++ good tutorial
 
4 coding from algorithms
4 coding from algorithms4 coding from algorithms
4 coding from algorithms
 
PROBLEM SOLVING
PROBLEM SOLVINGPROBLEM SOLVING
PROBLEM SOLVING
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
 

Recently uploaded

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 

Recently uploaded (20)

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 

Program concep sequential statements

  • 1. Program Concept Program is a group of sequential statements; which are executing line by line. It specifies the programming task and module of the program. It wills easy the effort of the program and helps to achieve the goal of user. So in another word we can say, “Program is a group of statement or instruction which are executing line by line by compiler or interpreter to get the goal of programs.” The software should be designed effectively so as to meet its objective of user satisfaction. Lawrence Peter has stated “Software design technology is a system not a secret.” According to Sethi89, “Language must help us write a good programs, where a program is a good if it is easy to read, easy to understand, and easy to modify.” Therefore, we can say, “A programming language intended to be used by a person to express a process by which a computer can solve a problem.” 4 key components of definition: - A. Computer: - A machine that will carry out the process described by a program. B. Person: - A person is a programmer who serves as the source of the communication. C. Process ; - Process is the activity being described by the program. D. Problem: - Problem is a actual system or environment where the problem arises. Language to satisfy 4 components: - A. Imperative: - It is geared towards easy machine translation. B. Logical (Declarative): - It geared towards people and the logical thinking process. C. Functional: - It focused on the function or operation being performed. D. Object – Oriented: - It geared towards the problem domain. Good programs will minimum the effort of the user. It will also reduce the effort of the time efficiency and line of programming code. The concept of program will shows the quality of the program, and quality of services. Why study programming languages: - i. Organize computations ii. Different problems have different needs. iii. Efficient Programming iv. Language Providers
  • 2. 1. Computation model 2. Data types and operation 3. Abstraction facilities 4. Checking and enforcement. A good program will show the following characteristics: - 1. Good program will easily understand by programmer as well as new user. 2. Good program will easily describe the role of the every step. 3. Good program will not increase the length of the program. They will increase the efficiency of the program. 4. Good program will decrease the line of code. 5. In good program functions are used. 6. Good program will hide the complexity of the program. 7. Good program will use array also as per programming requirement. 8. Good program will not bind the user. 9. The source code of program will well define. 10. The good program will easily modify in future. 11. The vocabulary of the language should resemble. 12. The language and its class or function library should be fully documented. 13. The logic of the program is easily so that in future it will easily modify as per requirement. 14. The good program normally defined top to down or bottom to top approach. 15. The program should be portable. 16. A good program must have self-documenting code. 17. Good program must have user friendly. 18. Good programs are more reliable. Stages of Program Development Process: -
  • 3. 1. Creak the problem: - This is the first stage of programming development. In this stage the problem is creaked and an algorithm is formulated which gives the solution for the problem. 2. Code the algorithm: - In this stage, the algorithm is translated into a program. The program is normally known as source code. This process is call coding. 3. Compile the program: - After feeding the program, next step is to compile it. Compilation is a process to convert the source code into object code. 4. Execute the program: - After compilation of an error free program, the program is executed. This phase is call run-time, the phase of program executing during which program instruction are carried out. A good programmer will define the program with efficient programming code and he will define the program into three (3) types: - 1. Algorithm 2. Flow Charts 3. Source Code. 1. Algorithm: - In mathematics and computer science, an algorithm is a step-by-step procedure for calculations. Algorithms are used for calculation, data processing and automated reasoning. In short we cam saw that an algorithm is a suitable process to execute the program step-by-step and it will follow the instruction given by user as well as program. It will also show the efficient way and tell us “How to execute the program perfectly. It will free the programming environment and it will easily convert into any programming language. Definition: - 1. “An algorithm is an effective method expressed as a finite list of well-defined instructions for calculation a function.” Starting an initial state and initial input the instruction describes a computation that, when executed, proceeds through a finite number of well-defined successive states, eventually producing “output” and
  • 4. terminating at a final ending state. The transition from one state to the next is not necessarily deterministic; some algorithm, known as randomized algorithm, incorporate random input. 2. An informal definition could be “a set of rules that precisely defines a sequence of operation”, which would include all computer programs, including program that do not perform numeric calculation. Generally, a program is only an algorithm if it stops eventually. 3. An algorithm is precise instruction (in language understood by “the computer”) for a fast, efficient, “good” process that specifies the “moves” of “the computer” (machine or human, equipped with the necessary internally contained information and capabilities to find decode, and then process arbitrary input integers/symbols m and n, symbols + and = … and “effectively” produce, in a “reasonable” time, output-integer y at a specified place and in specified format. 4. “Well ordered collection of unambiguous and effectively computable operation, that when executed, produces a result and halts in a finite of time.” Characteristics of an algorithm: - 1. Well Ordered: - The steps are in a clear order. 2. Unambiguous: - A computing agent without further simplification understands the operations described. 3. Effectively Computable: - The computing agent can actually carry out the operation. Method for Developing an algorithm: - 1. Define the Problem: - State the problem you are trying to solve in clear and concise terms. 2. List the Input: - Information needed to solve the Problem. 3. List the Output: - What the algorithm will produce as a result. 4. Describes the steps needed to convert or manipulate the inputs to produce the output: - Start at a high level first, and keep refining the steps until them effectively computable operation. 5. Test the algorithm: - Choose data sets and verify that your algorithm works! The concept of algorithm is also used to define the notion of decidability. That notation is central for explaining how format system comes into being starting from a small set of axioms and rules. In logic, the time that an algorithm requires to complete
  • 5. cannot be measured, as it is not apparently related with our customary physical dimension. From such uncertainties, than characterize ongoing work, stems the formalization. Algorithm can be expressed in many kinds of notation, natural languages, pseudo code, flowcharts, programming languages or control tables. Natural language expressions of algorithm tend to be verbose and ambiguous, and are rarely used for complex or technical algorithms. Examples of Algorithm: - 1. The bus algorithm: - i. Outside the railway station, catch bus number 1. ii. Transfer to bus 6 near Gol building, Jalori Gate. iii. Get off near GDMCMT. iv. Walk two blocks east to my house. 2. Add two number: - i. Take two number as input from user. ii. Take third variable to store the result. iii. Add two input variable and transfer the sum into third variable. iv. Print third variable value at computer screen. 3. To find out simple interest: - i. To determine the simple interest, we need three basic value such as principal, rate and time. The value of these value provide by user or program. ii. To process these variable we must know formula of Simple interest such as Si= (principal * rate * time)/ 100. iii. Si is the store variable and if we want to print total amount then we need addition variable tot_amount = principal + Si. iv. After calculating Si and tot_amount, print the result. These algorithms clearly show that “Algorithm is a process to develop the good program and it would free from any programming language.” In computer programming, there are often many different algorithms to accomplish any given task. Each algorithm
  • 6. has advantage and disadvantage in different situation. Sorting is one place where a lot of research has been done, because computer spends a lot of time sorting list. Algorithms also provide some addition feature such as - 1. Efficiency: - Efficient algorithm must be use to solve such problems considering the time and cost factor involved in each algorithm. 2. Abstraction: - Algorithms provide a level of abstraction in solving problem because many seemingly complicated problems can be distilled into simpler ones for which well-known algorithm exist. Once we see a more complicated problem in simpler light, we can thing of the simpler problem as just an abstraction of the more complicated one. 3. Reusability: - Algorithms are often reusable in many different situations. Since many well-known algorithm are the generalization s of more complicated ones, and since many complicated problem can be distilled into simpler ones. Advantage of Good Algorithm: - 1. Methods have been developed for the analysis of algorithms. 2. Different algorithms may complete the same task with a different set of instructions in less or more time, space, or 'effort' than others. 3. The analysis and study of algorithms is a discipline of computer science, and is often practiced abstractly without the use of a specific programming language or implementation. 4. Algorithm analysis resembles other mathematical disciplines in that it focuses on the underlying properties of the algorithm and not on the specifics of any particular implementation. 5. Empirical testing is useful because it may uncover unexpected interactions that affect performance. 6. An algorithm may be viewed as controlled logical deduction. 7. A good algorithm may provide a good programming approach. 8. Algorithm may provide time saving and improve to understand new programming metrology. 9. Algorithm may also provide minimum effort to understand complex problem. 10. Algorithm may also use to solve new problem using different algorithm.
  • 7. 11. Algorithms are not depending any programming language. 12. Algorithms are provide a scientific view to a new user. Disadvantage of Algorithm: - 1. Algorithms not follow any programming language so it is difficult to write down. 2. In algorithm approach, no pre specified method will define. 3. Algorithms are complex to understand for new user. 4. For one problem, it provides set of solution, so it is difficult to choose correct approach. 5. A good mathematical person may design a good algorithm and to easily understand. 6. Algorithms can execute one statement at a time so it will also follow top to down approach. 7. Algorithms can be classified by the amount of time they need to complete compared to their input size. Real example of Algorithm: - 1. Write an algorithm to find the larger number among three number A, B and C. 1. Read the number A, B and C 2. If A>B then go to step 3 else go to step 4. 3. If A>C then go to step 5 else go to step 6. 4. If B>C then go to step 7 else go to step 6. 5. Print A is the largest and go to step 8. 6. Print C is the largest and go to step 8. 7. Print B is the largest and go to step 8. 8. Stop.