Note

If you cannot find what you are looking for. Please visit our sitemap

Sunday, 22 February 2015

C++ Problem Solving

Problem Solving

Problem Solving is a creative process. it includes following steps.
  1. Planning
  2. Analysis
  3. Design
  4. Coding
  5. Testing & Debugging
  6. Implementation
  7. Maintenance

Algorithm

The step by step procedure for the solution of a problem is called algorithm

Algorithm that input 3 Numbers , compute there sum and average.

1. INPUT first number into A
2. INPUT second number into B
3. INPUT third number into C
4. Sum = A + B+ C
5. Average = Sum / 3
6. PRINT Sum
7. PRINT Average
9. End

Types of Control Structure

There are three types of control structures.
  1. Sequential Structure
  2. Conditional Structure
  3. Iterative Structure

Flowchart

The graphical representation of an algorithm or solution of a problem is called flowchart.

Programming Languages


Low Level Languages

  1. Machine Language
  2. Assembly Language

High Level Language

  1. FORTRAN
  2. COBOL
  3. PASCAL
  4. C
  5. LISP
  6. BASIC
  7. RPG
  8. SQL,etc

Programming Techniques

  1. Structured Programming
  2. Object Oriented Programming
  3. Event Driven Programming
  4. Visual Programming

Language Processors

  1. Compiler Interpreter
  2. Assembler 

Written By: Asad Hussain


No comments:

Post a Comment