Horizontal Nav

Monday 8 June 2015

C++ Program Analysis And Designing

Program Analysis

The program first studies the problem. The study of a problem involves the study of the available data & knowledge of the required output. This step is important because to solve a problem the programmer must know the problem specification. Only then he can write or design a good program to solve a problem. The output report always depends on the programmer’s instruction.

Program Designing

A computer program is written to solve a complex problem by the computer. A programmer writes a program according to the requirements of the problem.
The steps involved in solving a problem by the computer include:
  1. Problem Analysis or understanding the problem.
  2. Logic Design
  3. Coding
  4. Testing & Debugging
  5. Documentation

Wednesday 3 June 2015

C++ IDE and Algorithm

C++ IDE:

Turbo C++ is an integrated development environment (IDE) to write C++ programs. It is the implementation of Borland International. It is used to create, edit and save C++ programs. It also provides a powerful debugger. The debugger helps the users in detecting and removing errors in programs.

Algorithm & Pseudo Code:

An algorithm (pronounced AL-go-rith-um) is a step-by-step procedure to solve a problem. The process of solving a problem becomes simpler and easier with the help of algorithm. It is better to write algorithm before writing the actual computer program.

Examples of Algorithms

Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values num1 and num2.
Step 4: Add num1 and num2 and assign the result to sum.
        sum←num1+num2
Step 5: Display sum
Step 6: Stop