Top Banner
IXA 1234 : C++ PROGRAMMING CHAPTER 1
16

IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

Jan 03, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

IXA 1234 : C++ PROGRAMMING CHAPTER 1

Page 2: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAMMING LANGUAGE

Programming language is a computer program that can solve certain problem / task

Keyword: Computer program Solve problem

Example of programming language: C++Java

Page 3: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAMMING APPROACH

Structured approach: problem is divide into sub problems and then solution is obtained. Solution to all sub problem is combined to solve the overall problem

Object-oriented approach: identify the component (object), determine how the object interact with one another.

Page 4: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

EVOLUTION OF PROGRAMMING

Machine Language Sequence of 0 and 1 (binary code)

Assembly Language Middle level language Understand by human

High Level Language Eg: java, C++

Page 5: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

LANGUAGE TRANSLATOR

Language translator is a program which translates programs from source language into an equivalent program in an object language

There are 3 type of language translator involved in programming language Interpreter Compiler Assembler

Page 6: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

LANGUAGE TRANSLATOR

COMPILER : A program that translates source code into

object code.

Page 7: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

LANGUAGE TRANSLATOR

INTERPRETER An interpreter translates high-level instructions

into an immediate form, which it then executes.

Page 8: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

LANGUAGE TRANSLATOR

ASSEMBLER A program that translates programs from

assembly language to machine language Example: Intel-----MASM Motorola ------- 68000

Page 9: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAMMING LIFE CYCLE

Program Analysis

Program Modeling

Program Coding

Program Testing and Debugging

Maintenance

Documentation

Page 10: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAM ANALYSIS

Clearly define problem

Understand what the system must do

Understand the final output of a system

Page 11: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAM MODELING

Solution developed using model Three type of modeling:

Algorithm :A formula or set of steps for solving a particular problem

Pseudo code: An outline of a program, written in a form that can easily be converted into real programming statements

Flowchart : Graphical representation of a process, depicting inputs, outputs and unit of activity

Page 12: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAM MODELING

Program control structure: Sequence While If-then-else Repeat – until For case.

Page 13: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAM CODING

Write complete program out in programming language such as c++ Write program compile program run program debug program repeat the whole process.

Page 14: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAM TESTING AND DEBUGGING

Compile the program to detect error Debug is to find the error and fix it After get 0 error and 0 warning then the

program can executed. Run / execute is a same meaning

Page 15: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

PROGRAM MAINTENANCE

After all the program compile and run successfully, the program should be maintained.

Any enhancement to the system can be done after the implementation phase

Page 16: IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.

DOCUMENTATION

Documentation is very important in order to enhance system.

Every time report must be completed and get approval.