SlideShare a Scribd company logo
1 of 47
Introduction to Programming
Lecture 1
Outline
 A computer is a useful tool for solving a great
variety of problems.
 To make a computer do anything (i.e. solve a
problem), we have to write a computer program.
 In a computer program we tell a computer, step
by step, exactly what want to do.
What is program
“A precise sequence of steps to
solve a particular problem”
 Following each step mechanically, to accomplish
the end goal.
 The sequence of steps to be performed in order
to solve a problem by the computer is known as
an algorithm.
 Flowchart is a graphical or symbolic
representation of an algorithm. It is the
diagrammatic representation of the step-by-step
solution to a given problem.
Concept of Languages
 Languages are used for
Communication between Users and
Computers.
Program Design Process
 Program Design consists of the steps a
programmer should do before they start coding
the program in a specific language. Proper
program design helps other programmers to
maintain the program in the future.
Problem Solving
Problem Solving is easy if you follow
these steps
Understan
d
the
problem
Step 1 – Understand the problem
Read the problem carefully.
Find the important information.
Write down the numbers.
Identify what the problem wants
you to solve.
Ask if your answer is going to
be a larger or smaller number
compared to what you already
Step 1 - Understand the Problem
Read the problem carefully.
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?
Step 1 - Understand the Problem
Find the important information.
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?
Step 1 - Understand the Problem
Write down the numbers.
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?
Total = 31 1st week =14
Step 1 - Understand the Problem
Identify what the problem wants
you to solve.
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?Total = 31 1st week =14
2nd week =
Step 1 - Understand the Problem
Ask if your answer is going to be a
larger or smaller number compared to
what you already know.
Total = 31 1st week =14
2nd week =
?It will be smaller than the total but
may or may not be smaller than
the first week.
Problem Solving is easy if you follow
these steps
Decide
how
you’re
going to
solve the
problem
Step 2 - Decide how you’re going to
solve the problem
Choose a method
Use a graph Use
formulas
Write an equation Make a list
Find a pattern Work
backwards
Use reasoning Draw a picture
Make a table Act it out
Step 2 - Decide how you’re going to
solve the problem
Write your equation
Since I know both weeks total 31 I
write
14 + s = 31
Total = 31 1st week =14
2nd week =
?
Step 2 - Decide how you’re going to
solve the problem
Write your equation
I can use the inverse operation to
solve for s
14 + s = 31 31 – 14 = s
Total = 31 1st week =14
2nd week =
?
Problem Solving is easy if you follow
these steps
Solve
The
Problem
Step 3 - Solve the problem
3 1
– 1 4
Total = 31 1st week =14
2nd week =
? 2
1
71
Problem Solving is easy if you follow
these steps
Look
Back &
Check
Step 4 - Look Back & Check
Reread the problem
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?
Total = 31 1st week =14
Step 4 - Look Back & Check
Substitute your new number
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?Total = 31 1st week =14
2nd week = 17
Step 4 - Look Back & Check
Substitute your new number
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?
14 + 17 = 31
Step 4 - Look Back & Check
Did your new number work?
Luis earned 14 Accelerated
Reading points the first week
of November. At the end of
the following week he had a
total of 31 points. How many
points did he earn the
second week?
14 + 17 = 31 Yes!
Write an equation to solve this
problem.
Jaylynn had $84.75 in her
savings account. She made a
deposit. Her new balance was
$107.03. How much was her
deposit?
Write an equation to solve this
problem.
Anthony has twice as many
pokemon cards as Joshua. If
Anthony has 124 cards, how
many does Joshua have?
Write an equation to solve this
problem.
Vicki baked 90 cookies . If there
are 15 cookies in each batch.
How many batches did she
bake?
Write an equation to solve this
problem.
Navneet has 3 times as many
CD’s as Arlene. If Navneet has
36 CD’s, how many does Arlene
have?
Write an equation to solve this
problem.
A square has a perimeter of 48
inches. What is the length of
each side of the square.
Write an equation to solve this
problem.
One year the city ambulance
responded to emergencies on
293 days. How many days were
there no emergencies?
Credits
 Clipart from Broderbund ClickArt 125,000
Deluxe Image Pak
 Clipart from Corel Gallery by Corel Corp.
Program Design Phases
 Program Design Process Include:
 Problem Solving Phase
 Implementation Phase
Problem Solving Phase
 Problem solving is a skill which can be developed
by following a well organized approach.
 Programming is also a problem solving activity.
 Programmer use software development method
to solve problems.
Software development activities
 The following steps can be followed to solve any
kind of problem:
1. Problem Identification
2. Specify Requirements
3. Analyze Problem
4. Design algorithm and draw flowchart
5. Write the program (Coding)
6. Testing and Debug the program
7. Implement the program
8. Maintain and Update the program
9. Document the program
Problem Identification
 At this stage the problem being solved is
observed carefully.
 Major area of concern are identified.
 Irrelevant information is filter out.
Specify Requirements
 This stage demands to make clear the user’s
requirements so that a proper solution could be
suggested.
 Requirements are documented here.
Analyze the problem
 Problem is decomposed into sub-problems.
 This lead to simple solution
 The technique is known is top down design (also
called divide and conquer rule).
 To approach the right solution we may ask certain
questions:-
i. How many solutions are there to the given problem?
ii. Which one is the best solution?
iii. What are the input and output?
iv. How can the bigger problem be divided into sub
problems?
Design Algorithm and draw Flowchart
 Designing the algorithm requires to develop a
finite list of steps to solve a problem.
 Once algorithm has been designed it should be
verified through desk checking.
 Desk Checking is the process of carefully observing the
working of an algorithm, on the paper, for some test data.
 After designing the algorithm, the next step is to
draw a flowchart.
 Flowchart in fact, maps the algorithm to a pictorial
presentation which helps in understanding the
flow of control and data in algorithm.
Write the Program (Coding)
 Coding involves the conversion of an
algorithm to a program, written in any
programming language.
 The programmer must know the syntax of the
programming language chosen.
 The grammatical rules of a programming
language to write programs are referred to as
syntax of that programming language.
Test and Debug the program
 Testing requires evaluating the program to verify
that it works as desired.
 Debugging is the process of finding and removing
errors in the program.
Test and Debug the program
 There can be three types of errors:-
 Syntax Errors:-
 Occur when program violates one or more
grammatical rules of the programming language.
 Usually detected at compile time by the compiler.
 There can be many reasons such as typing wrong
commands or program statements.
Test and Debug the program
 Logical Errors:-
 Logical errors occur when program follow a wrong
logic.
 The translator (compiler or interpreter) does not
report any error message for a logical errors.
 Can be identified by just looking at the wrong output
of the program.
Test and Debug the program
 Runtime Errors:-
 A runtime error occurs when the program directs the
computer to perform an illegal operation such as
dividing a number by zero.
 When runtime error occur, the computer will stop
executing the program and may display a diagnostic
message that helps in locating the error.
Implement the Program (deployment)
 Once the program has been tested thoroughly, it
must be installed or put into operation at the site
where it will be used.
Maintain & Update the Program
 Program maintenance is ongoing process of
upgrading the program to accommodate new
hardware and software.
 Regular maintenance is essential to the
continued usefulness of a program.
Document the program
 Documentation is a detailed description of a
program’s algorithm, design, coding method,
testing and proper usage.
 A comprehensive documentation consists of the
following:
 A description of what the program is supposed to do.
 A description of the problem solution (the algorithm).
 A description of the program design including any aids used
(flowcharts, algorithms etc.).
 A description of the program’s testing process, including test
data used and result obtained.
 A description of all correctness modification and updates
made to the program.
 A user manual (user guide).

More Related Content

What's hot

Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowchartsSamuel Igbanogu
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codehamza javed
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmDHANIK VIKRANT
 
Algorithms and flowcharts ppt (seminar presentation)..
 Algorithms and flowcharts  ppt (seminar presentation).. Algorithms and flowcharts  ppt (seminar presentation)..
Algorithms and flowcharts ppt (seminar presentation)..Nagendra N
 
8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solving8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solvingKhan Yousafzai
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Adam Mukharil Bachtiar
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithemehsanullah786
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & ImplementationBilal Maqbool ツ
 
Introduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsYash Gupta
 
Algorithms and how to write an algorithms
Algorithms and how to write an algorithmsAlgorithms and how to write an algorithms
Algorithms and how to write an algorithmsAhmed Nobi
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and FlowchartsSabik T S
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartRabin BK
 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodesDr Piyush Charan
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1luhkahreth
 
Algorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanAlgorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanHaseeb Shalmani
 

What's hot (20)

Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
phases of algorithm
phases of algorithmphases of algorithm
phases of algorithm
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo code
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Algorithms and flowcharts ppt (seminar presentation)..
 Algorithms and flowcharts  ppt (seminar presentation).. Algorithms and flowcharts  ppt (seminar presentation)..
Algorithms and flowcharts ppt (seminar presentation)..
 
8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solving8.1 alogorithm & prolem solving
8.1 alogorithm & prolem solving
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
 
Introduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow charts
 
Algorithms and how to write an algorithms
Algorithms and how to write an algorithmsAlgorithms and how to write an algorithms
Algorithms and how to write an algorithms
 
Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 
Algorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanAlgorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb Khan
 

Similar to Introduction to Programming

Programming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f cProgramming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f cRaja Hamid
 
COMPUTER PROGRAMMING UNIT 1 Lecture 2
COMPUTER PROGRAMMING UNIT 1 Lecture 2COMPUTER PROGRAMMING UNIT 1 Lecture 2
COMPUTER PROGRAMMING UNIT 1 Lecture 2Vishal Patil
 
Programming Fundamentals using C++
Programming Fundamentals using C++Programming Fundamentals using C++
Programming Fundamentals using C++ALI RAZA
 
C programming .pptx
C programming .pptxC programming .pptx
C programming .pptxSuhaibKhan62
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Raja Hamid
 
Programming fundamentals 2
Programming fundamentals 2Programming fundamentals 2
Programming fundamentals 2Adeem Mirza
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)TejaswiB4
 
Csc 130 class 2 problem analysis and flow charts(2)
Csc 130 class 2   problem analysis and flow charts(2)Csc 130 class 2   problem analysis and flow charts(2)
Csc 130 class 2 problem analysis and flow charts(2)Puneet narula
 
Lecture 7 program development issues (supplementary)
Lecture 7  program development issues (supplementary)Lecture 7  program development issues (supplementary)
Lecture 7 program development issues (supplementary)alvin567
 
Algorithm types performance steps working
Algorithm types performance steps workingAlgorithm types performance steps working
Algorithm types performance steps workingSaurabh846965
 
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxChallenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxRusherGamer1
 
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHESC LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHESHarshJha34
 

Similar to Introduction to Programming (20)

Programming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f cProgramming fundamentals lecture 1 0f c
Programming fundamentals lecture 1 0f c
 
COMPUTER PROGRAMMING UNIT 1 Lecture 2
COMPUTER PROGRAMMING UNIT 1 Lecture 2COMPUTER PROGRAMMING UNIT 1 Lecture 2
COMPUTER PROGRAMMING UNIT 1 Lecture 2
 
Programming Fundamentals using C++
Programming Fundamentals using C++Programming Fundamentals using C++
Programming Fundamentals using C++
 
CC-112-Lec.1.ppsx
CC-112-Lec.1.ppsxCC-112-Lec.1.ppsx
CC-112-Lec.1.ppsx
 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
 
Practical 01 (detailed)
Practical 01 (detailed)Practical 01 (detailed)
Practical 01 (detailed)
 
C programming .pptx
C programming .pptxC programming .pptx
C programming .pptx
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2
 
Programming fundamentals 2
Programming fundamentals 2Programming fundamentals 2
Programming fundamentals 2
 
Prog Design
Prog DesignProg Design
Prog Design
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
PPS_Unit 1.pptx
PPS_Unit 1.pptxPPS_Unit 1.pptx
PPS_Unit 1.pptx
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
 
Csc 130 class 2 problem analysis and flow charts(2)
Csc 130 class 2   problem analysis and flow charts(2)Csc 130 class 2   problem analysis and flow charts(2)
Csc 130 class 2 problem analysis and flow charts(2)
 
Lecture 7 program development issues (supplementary)
Lecture 7  program development issues (supplementary)Lecture 7  program development issues (supplementary)
Lecture 7 program development issues (supplementary)
 
Algorithm types performance steps working
Algorithm types performance steps workingAlgorithm types performance steps working
Algorithm types performance steps working
 
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxChallenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHESC LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
 

More from ALI RAZA

pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and FlowchartALI RAZA
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to ProgrammingALI RAZA
 
Array sorting
Array sortingArray sorting
Array sortingALI RAZA
 
Array programs
Array programsArray programs
Array programsALI RAZA
 
Quiz game documentary
Quiz game documentaryQuiz game documentary
Quiz game documentaryALI RAZA
 
Function pass by value,function pass by reference
Function pass by value,function pass by reference Function pass by value,function pass by reference
Function pass by value,function pass by reference ALI RAZA
 
Drug Addiction 39 Slides
Drug Addiction 39 SlidesDrug Addiction 39 Slides
Drug Addiction 39 SlidesALI RAZA
 
Drug Addiction Original 51 Slides
Drug Addiction Original 51 SlidesDrug Addiction Original 51 Slides
Drug Addiction Original 51 SlidesALI RAZA
 
Passing stuctures to function
Passing stuctures to functionPassing stuctures to function
Passing stuctures to functionALI RAZA
 
Basic general knowledge
Basic general knowledgeBasic general knowledge
Basic general knowledgeALI RAZA
 
Dil hua kirchi kirchi by mohammad iqbal shams
Dil hua kirchi kirchi by mohammad iqbal shamsDil hua kirchi kirchi by mohammad iqbal shams
Dil hua kirchi kirchi by mohammad iqbal shamsALI RAZA
 
Pathar kar-do-ankh-mein-ansu-complete
Pathar kar-do-ankh-mein-ansu-completePathar kar-do-ankh-mein-ansu-complete
Pathar kar-do-ankh-mein-ansu-completeALI RAZA
 
Husne akhlaq
Husne akhlaqHusne akhlaq
Husne akhlaqALI RAZA
 
Parts of speech sticky note definitions and examples
Parts of speech sticky note definitions and examplesParts of speech sticky note definitions and examples
Parts of speech sticky note definitions and examplesALI RAZA
 
10 types of computers
10 types of computers10 types of computers
10 types of computersALI RAZA
 

More from ALI RAZA (20)

Structure
StructureStructure
Structure
 
Recursion
RecursionRecursion
Recursion
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and Flowchart
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
 
Array sorting
Array sortingArray sorting
Array sorting
 
Array programs
Array programsArray programs
Array programs
 
2D-Array
2D-Array 2D-Array
2D-Array
 
Quiz game documentary
Quiz game documentaryQuiz game documentary
Quiz game documentary
 
Function pass by value,function pass by reference
Function pass by value,function pass by reference Function pass by value,function pass by reference
Function pass by value,function pass by reference
 
Drug Addiction 39 Slides
Drug Addiction 39 SlidesDrug Addiction 39 Slides
Drug Addiction 39 Slides
 
Drug Addiction Original 51 Slides
Drug Addiction Original 51 SlidesDrug Addiction Original 51 Slides
Drug Addiction Original 51 Slides
 
Passing stuctures to function
Passing stuctures to functionPassing stuctures to function
Passing stuctures to function
 
Basic general knowledge
Basic general knowledgeBasic general knowledge
Basic general knowledge
 
Dil hua kirchi kirchi by mohammad iqbal shams
Dil hua kirchi kirchi by mohammad iqbal shamsDil hua kirchi kirchi by mohammad iqbal shams
Dil hua kirchi kirchi by mohammad iqbal shams
 
Pathar kar-do-ankh-mein-ansu-complete
Pathar kar-do-ankh-mein-ansu-completePathar kar-do-ankh-mein-ansu-complete
Pathar kar-do-ankh-mein-ansu-complete
 
Husne akhlaq
Husne akhlaqHusne akhlaq
Husne akhlaq
 
Parts of speech sticky note definitions and examples
Parts of speech sticky note definitions and examplesParts of speech sticky note definitions and examples
Parts of speech sticky note definitions and examples
 
Quik tips
Quik tipsQuik tips
Quik tips
 
Binary
BinaryBinary
Binary
 
10 types of computers
10 types of computers10 types of computers
10 types of computers
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Introduction to Programming

  • 2. Outline  A computer is a useful tool for solving a great variety of problems.  To make a computer do anything (i.e. solve a problem), we have to write a computer program.  In a computer program we tell a computer, step by step, exactly what want to do.
  • 3. What is program “A precise sequence of steps to solve a particular problem”
  • 4.  Following each step mechanically, to accomplish the end goal.  The sequence of steps to be performed in order to solve a problem by the computer is known as an algorithm.  Flowchart is a graphical or symbolic representation of an algorithm. It is the diagrammatic representation of the step-by-step solution to a given problem.
  • 5. Concept of Languages  Languages are used for Communication between Users and Computers.
  • 6. Program Design Process  Program Design consists of the steps a programmer should do before they start coding the program in a specific language. Proper program design helps other programmers to maintain the program in the future.
  • 8. Problem Solving is easy if you follow these steps Understan d the problem
  • 9. Step 1 – Understand the problem Read the problem carefully. Find the important information. Write down the numbers. Identify what the problem wants you to solve. Ask if your answer is going to be a larger or smaller number compared to what you already
  • 10. Step 1 - Understand the Problem Read the problem carefully. Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week?
  • 11. Step 1 - Understand the Problem Find the important information. Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week?
  • 12. Step 1 - Understand the Problem Write down the numbers. Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week? Total = 31 1st week =14
  • 13. Step 1 - Understand the Problem Identify what the problem wants you to solve. Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week?Total = 31 1st week =14 2nd week =
  • 14. Step 1 - Understand the Problem Ask if your answer is going to be a larger or smaller number compared to what you already know. Total = 31 1st week =14 2nd week = ?It will be smaller than the total but may or may not be smaller than the first week.
  • 15. Problem Solving is easy if you follow these steps Decide how you’re going to solve the problem
  • 16. Step 2 - Decide how you’re going to solve the problem Choose a method Use a graph Use formulas Write an equation Make a list Find a pattern Work backwards Use reasoning Draw a picture Make a table Act it out
  • 17. Step 2 - Decide how you’re going to solve the problem Write your equation Since I know both weeks total 31 I write 14 + s = 31 Total = 31 1st week =14 2nd week = ?
  • 18. Step 2 - Decide how you’re going to solve the problem Write your equation I can use the inverse operation to solve for s 14 + s = 31 31 – 14 = s Total = 31 1st week =14 2nd week = ?
  • 19. Problem Solving is easy if you follow these steps Solve The Problem
  • 20. Step 3 - Solve the problem 3 1 – 1 4 Total = 31 1st week =14 2nd week = ? 2 1 71
  • 21. Problem Solving is easy if you follow these steps Look Back & Check
  • 22. Step 4 - Look Back & Check Reread the problem Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week? Total = 31 1st week =14
  • 23. Step 4 - Look Back & Check Substitute your new number Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week?Total = 31 1st week =14 2nd week = 17
  • 24. Step 4 - Look Back & Check Substitute your new number Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week? 14 + 17 = 31
  • 25. Step 4 - Look Back & Check Did your new number work? Luis earned 14 Accelerated Reading points the first week of November. At the end of the following week he had a total of 31 points. How many points did he earn the second week? 14 + 17 = 31 Yes!
  • 26. Write an equation to solve this problem. Jaylynn had $84.75 in her savings account. She made a deposit. Her new balance was $107.03. How much was her deposit?
  • 27. Write an equation to solve this problem. Anthony has twice as many pokemon cards as Joshua. If Anthony has 124 cards, how many does Joshua have?
  • 28. Write an equation to solve this problem. Vicki baked 90 cookies . If there are 15 cookies in each batch. How many batches did she bake?
  • 29. Write an equation to solve this problem. Navneet has 3 times as many CD’s as Arlene. If Navneet has 36 CD’s, how many does Arlene have?
  • 30. Write an equation to solve this problem. A square has a perimeter of 48 inches. What is the length of each side of the square.
  • 31. Write an equation to solve this problem. One year the city ambulance responded to emergencies on 293 days. How many days were there no emergencies?
  • 32. Credits  Clipart from Broderbund ClickArt 125,000 Deluxe Image Pak  Clipart from Corel Gallery by Corel Corp.
  • 33. Program Design Phases  Program Design Process Include:  Problem Solving Phase  Implementation Phase
  • 34. Problem Solving Phase  Problem solving is a skill which can be developed by following a well organized approach.  Programming is also a problem solving activity.  Programmer use software development method to solve problems.
  • 35. Software development activities  The following steps can be followed to solve any kind of problem: 1. Problem Identification 2. Specify Requirements 3. Analyze Problem 4. Design algorithm and draw flowchart 5. Write the program (Coding) 6. Testing and Debug the program 7. Implement the program 8. Maintain and Update the program 9. Document the program
  • 36. Problem Identification  At this stage the problem being solved is observed carefully.  Major area of concern are identified.  Irrelevant information is filter out.
  • 37. Specify Requirements  This stage demands to make clear the user’s requirements so that a proper solution could be suggested.  Requirements are documented here.
  • 38. Analyze the problem  Problem is decomposed into sub-problems.  This lead to simple solution  The technique is known is top down design (also called divide and conquer rule).  To approach the right solution we may ask certain questions:- i. How many solutions are there to the given problem? ii. Which one is the best solution? iii. What are the input and output? iv. How can the bigger problem be divided into sub problems?
  • 39. Design Algorithm and draw Flowchart  Designing the algorithm requires to develop a finite list of steps to solve a problem.  Once algorithm has been designed it should be verified through desk checking.  Desk Checking is the process of carefully observing the working of an algorithm, on the paper, for some test data.  After designing the algorithm, the next step is to draw a flowchart.  Flowchart in fact, maps the algorithm to a pictorial presentation which helps in understanding the flow of control and data in algorithm.
  • 40. Write the Program (Coding)  Coding involves the conversion of an algorithm to a program, written in any programming language.  The programmer must know the syntax of the programming language chosen.  The grammatical rules of a programming language to write programs are referred to as syntax of that programming language.
  • 41. Test and Debug the program  Testing requires evaluating the program to verify that it works as desired.  Debugging is the process of finding and removing errors in the program.
  • 42. Test and Debug the program  There can be three types of errors:-  Syntax Errors:-  Occur when program violates one or more grammatical rules of the programming language.  Usually detected at compile time by the compiler.  There can be many reasons such as typing wrong commands or program statements.
  • 43. Test and Debug the program  Logical Errors:-  Logical errors occur when program follow a wrong logic.  The translator (compiler or interpreter) does not report any error message for a logical errors.  Can be identified by just looking at the wrong output of the program.
  • 44. Test and Debug the program  Runtime Errors:-  A runtime error occurs when the program directs the computer to perform an illegal operation such as dividing a number by zero.  When runtime error occur, the computer will stop executing the program and may display a diagnostic message that helps in locating the error.
  • 45. Implement the Program (deployment)  Once the program has been tested thoroughly, it must be installed or put into operation at the site where it will be used.
  • 46. Maintain & Update the Program  Program maintenance is ongoing process of upgrading the program to accommodate new hardware and software.  Regular maintenance is essential to the continued usefulness of a program.
  • 47. Document the program  Documentation is a detailed description of a program’s algorithm, design, coding method, testing and proper usage.  A comprehensive documentation consists of the following:  A description of what the program is supposed to do.  A description of the problem solution (the algorithm).  A description of the program design including any aids used (flowcharts, algorithms etc.).  A description of the program’s testing process, including test data used and result obtained.  A description of all correctness modification and updates made to the program.  A user manual (user guide).