SlideShare a Scribd company logo
Programming
Fundamentals using
C++
Programming
 Much of human behavior and thought is characterized by
logical sequences of actions applied to objects.
 Think of every step involved in a process as simple as
turning a page by hand:
1. Lift hand.
2. Move hand to right side of book.
3. Grasp top-right corner of page.
4. Move hand from right to left until page is positioned so that you
can read what is on the other side.
5. Let go of page.
.
Programming
 Think how many neurons must fire and how many
muscles must respond, all in a certain order or
sequence, to move your arm and hand. Yet you do it
unconsciously.
 We create order, both consciously and unconsciously,
through a process called programming
How Do We Write a Program?
 A computer is not intelligent. It cannot analyze a problem
and come up with a solution.
 A human (the programmer) must analyze the problem,
develop the instructions for solving the problem, and
then have the computer carry out the instructions.
 To write a program for a computer to follow, we must go
through a two-phase process: problem solving and
implementation
How Do We Write a Program?
How Do We Write a Program?
Problem-Solving Phase
1.Analysis and Specification. Understand (define) the problem and what the
solution must do.
A. Defining/Specifying the problem:
• What the computer program do?
• What tasks will it perform?
• What kind of data will it use, and where will get its data from?
• What will be the output of the program?
• How will the program interact with the computer user?
How Do We Write a Program?
B. Analyzing the problem
 It involves identifying the problem
 Inputs that is, the data you have to work with
 Outputs, the desired results
 Additional requirements or constraints on the solution.
2. General Solution (Algorithm). Specify the required data
types and the logical sequences of steps that solve the
problem.
3. Verify. Follow the steps exactly to see if the solution
really does solve the problem.
 Implementation Phase
1. Concrete Solution (Program).
Translate the algorithm (the general solution) into
a programming language.
2. Test.
Have the computer follow the instructions. Then
manually check the results. If you find errors,
analyze the program and the algorithm to
determine the source of the errors, and then
make corrections.
How Do We Write a Program?
Maintenance Phase
1. Use. Use the program.
2. Maintain. Modify the program to meet changing
requirements or to correct any errors that show up
while using it.
How Do We Write a Program?
Maintenance Phase
1. Use. Use the program.
2. Maintain. Modify the program to meet changing
requirements or to correct any errors that show up
while using it.
How Do We Write a Program?

More Related Content

PPTX
Top Five Tips For ISC Computer Practicals
ODP
Lesson 18 tac
PPTX
Homework
PPTX
Application of algorithm in real life
PPTX
Week 1 lesson 3 for Intro to Tech class
DOCX
Report math xpert
PDF
HOW TO USE MACHINE LEARNING EFFECTIVELY
PPTX
Making method calls_simpler
Top Five Tips For ISC Computer Practicals
Lesson 18 tac
Homework
Application of algorithm in real life
Week 1 lesson 3 for Intro to Tech class
Report math xpert
HOW TO USE MACHINE LEARNING EFFECTIVELY
Making method calls_simpler

What's hot (20)

PPTX
My ITlab overview
PPT
Product manager and game analytics
PPT
Sergei Romanenko, PlayFlock
PPTX
AssignmentC
PPTX
Testing metrics webinar
PDF
Robots, Testing and LAST
DOCX
Sleep investigation
PPTX
Bug Reporting 101
PDF
Lecture 3
PPTX
Dfmw Spreadsheet Errors Presentation Jake Carney
PPT
Finances
PPT
What is a Computer
PDF
Never show a design you haven't tested
DOCX
Homework week 5 term 2 2015
PPTX
2-SampZTest: Comparing Two Means Using the TI-84
PPTX
Our Usability Study Process
PPT
MAP | Student
PDF
Module 3 review packet
PPT
Prog Design
PDF
How to start thinking like a data scientist
My ITlab overview
Product manager and game analytics
Sergei Romanenko, PlayFlock
AssignmentC
Testing metrics webinar
Robots, Testing and LAST
Sleep investigation
Bug Reporting 101
Lecture 3
Dfmw Spreadsheet Errors Presentation Jake Carney
Finances
What is a Computer
Never show a design you haven't tested
Homework week 5 term 2 2015
2-SampZTest: Comparing Two Means Using the TI-84
Our Usability Study Process
MAP | Student
Module 3 review packet
Prog Design
How to start thinking like a data scientist
Ad

Similar to Programming Fundamentals using C++ (20)

PPT
Programming fundamentals lecture 1&2
PDF
Study Material for Problem Solving Techniques
PPTX
Introduction.pptx
PPTX
Introduction to Programming
PPTX
Programming_Lecture_1.pptx
PPTX
Module 1 python.pptx
DOCX
Chapter 2(1)
PDF
Practical 01 (detailed)
PPTX
Power Point Introduction To Programming 1
PDF
Introduction to Computer Programming
PPTX
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
PPT
(Prog213) (introduction to programming)v1
PPT
Unit 1 python (2021 r)
PDF
BCA 1st semester Problem Solving Notes using C.pdf
PPTX
Algorithm for computational problematic sit
PPTX
01 Programming Fundamentals.pptx
PDF
Arts6_q1_mod3_concepts on the use of computer software_v2.pdf
PDF
Webdev and programming
PPSX
CC-112-Lec.1.ppsx
PPTX
Chp-1 DAA (2).pptx design analysis and algoritham presentation
Programming fundamentals lecture 1&2
Study Material for Problem Solving Techniques
Introduction.pptx
Introduction to Programming
Programming_Lecture_1.pptx
Module 1 python.pptx
Chapter 2(1)
Practical 01 (detailed)
Power Point Introduction To Programming 1
Introduction to Computer Programming
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
(Prog213) (introduction to programming)v1
Unit 1 python (2021 r)
BCA 1st semester Problem Solving Notes using C.pdf
Algorithm for computational problematic sit
01 Programming Fundamentals.pptx
Arts6_q1_mod3_concepts on the use of computer software_v2.pdf
Webdev and programming
CC-112-Lec.1.ppsx
Chp-1 DAA (2).pptx design analysis and algoritham presentation
Ad

More from ALI RAZA (20)

PPTX
Structure
PPTX
Recursion
PPTX
pseudocode and Flowchart
PPTX
Algorithm Development
PPTX
Introduction to Programming
PPTX
Array sorting
PPTX
Array programs
PPTX
2D-Array
DOCX
Quiz game documentary
PPTX
Function pass by value,function pass by reference
PPTX
Drug Addiction 39 Slides
PPTX
Drug Addiction Original 51 Slides
PPTX
Passing stuctures to function
PDF
Basic general knowledge
PDF
Dil hua kirchi kirchi by mohammad iqbal shams
PDF
Pathar kar-do-ankh-mein-ansu-complete
PDF
Husne akhlaq
PDF
Parts of speech sticky note definitions and examples
PDF
Quik tips
PDF
Binary
Structure
Recursion
pseudocode and Flowchart
Algorithm Development
Introduction to Programming
Array sorting
Array programs
2D-Array
Quiz game documentary
Function pass by value,function pass by reference
Drug Addiction 39 Slides
Drug Addiction Original 51 Slides
Passing stuctures to function
Basic general knowledge
Dil hua kirchi kirchi by mohammad iqbal shams
Pathar kar-do-ankh-mein-ansu-complete
Husne akhlaq
Parts of speech sticky note definitions and examples
Quik tips
Binary

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
master seminar digital applications in india
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
01-Introduction-to-Information-Management.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Classroom Observation Tools for Teachers
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Pharma ospi slides which help in ospi learning
PDF
Computing-Curriculum for Schools in Ghana
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Lesson notes of climatology university.
O7-L3 Supply Chain Operations - ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
master seminar digital applications in india
Microbial diseases, their pathogenesis and prophylaxis
Basic Mud Logging Guide for educational purpose
Renaissance Architecture: A Journey from Faith to Humanism
01-Introduction-to-Information-Management.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Classroom Observation Tools for Teachers
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pharma ospi slides which help in ospi learning
Computing-Curriculum for Schools in Ghana
2.FourierTransform-ShortQuestionswithAnswers.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Lesson notes of climatology university.

Programming Fundamentals using C++

  • 2. Programming  Much of human behavior and thought is characterized by logical sequences of actions applied to objects.  Think of every step involved in a process as simple as turning a page by hand: 1. Lift hand. 2. Move hand to right side of book. 3. Grasp top-right corner of page. 4. Move hand from right to left until page is positioned so that you can read what is on the other side. 5. Let go of page. .
  • 3. Programming  Think how many neurons must fire and how many muscles must respond, all in a certain order or sequence, to move your arm and hand. Yet you do it unconsciously.  We create order, both consciously and unconsciously, through a process called programming
  • 4. How Do We Write a Program?  A computer is not intelligent. It cannot analyze a problem and come up with a solution.  A human (the programmer) must analyze the problem, develop the instructions for solving the problem, and then have the computer carry out the instructions.  To write a program for a computer to follow, we must go through a two-phase process: problem solving and implementation
  • 5. How Do We Write a Program?
  • 6. How Do We Write a Program? Problem-Solving Phase 1.Analysis and Specification. Understand (define) the problem and what the solution must do. A. Defining/Specifying the problem: • What the computer program do? • What tasks will it perform? • What kind of data will it use, and where will get its data from? • What will be the output of the program? • How will the program interact with the computer user?
  • 7. How Do We Write a Program? B. Analyzing the problem  It involves identifying the problem  Inputs that is, the data you have to work with  Outputs, the desired results  Additional requirements or constraints on the solution. 2. General Solution (Algorithm). Specify the required data types and the logical sequences of steps that solve the problem. 3. Verify. Follow the steps exactly to see if the solution really does solve the problem.
  • 8.  Implementation Phase 1. Concrete Solution (Program). Translate the algorithm (the general solution) into a programming language. 2. Test. Have the computer follow the instructions. Then manually check the results. If you find errors, analyze the program and the algorithm to determine the source of the errors, and then make corrections. How Do We Write a Program?
  • 9. Maintenance Phase 1. Use. Use the program. 2. Maintain. Modify the program to meet changing requirements or to correct any errors that show up while using it. How Do We Write a Program?
  • 10. Maintenance Phase 1. Use. Use the program. 2. Maintain. Modify the program to meet changing requirements or to correct any errors that show up while using it. How Do We Write a Program?