Website is updated! 06:37 PM 09/01/2015

Pgesturia

Pgesturia

Friday, 21 November 2014

C programming language chapter 1

Object-Oriented Programming using C++

Chapter#1

Introduction to programming

Contents


  1. Problem solving
  2. Advantages of computer program
  3. Algorithms and Pseudo code
  4. Types of code


Programming languages are sub-divided in to numerous categories in which we discussed
C language.

1. Problem Solving

 DEF:-       Problem solving is the process of identifying problem and to finds its best solution.
Problem solving is a skill that can be developed by following a well organized approach.
Different strategies techniques and tools are used to solve a problem.
Computers are used as a tool to solve  complex problem by developing computer programs.
Computer program contain different instructions for computer.
A person can be a good programmer  if he or she has a skills of  solving problems.

Problem-Solving techniques

  • Program
  • Algorithms
  • FlowCharts

2. Advantages of Computer Program

  • A computer program can solve many problems by giving instruction to computer.
  • A computer program can be used to perform a task repeatedly and quickly.
  • A program can process a large amount of data easily.
  • It can display the results in different styles.
  • The processing of a program is more efficient and less time consuming. 

3. Algorithms and pseudo code

There are several properties of pseudo code.

Properties of pseudo code

  • The given problem should be broken in to simple and meaningful steps.
  • The steps should be in number sequentially.
  • The steps should be descriptive and written in simple English.

4. Types of codes

There are two types of codes given below:-
  1. Source code
  2. Object code

Source Code

A program written in a high-Level language is called Source code.
Source code is also called source program.
Computer cant understand the statements of high level languages.
The source code cant be executed by computer directly.

Object Code

A program in a machine language is called  object code.
It is also called object program or machine code.
Computer understands object code directly.

you can further learn from next chapter that is Chapter 2


0 comments: