Computer Programming: Algorithms, Programs, and Software Life Cycle
E N D
Presentation Transcript
Objectives Program and Programming Algorithms & Programs Software Life Cycle
Program and Programming
Program and Programming • Program: • A set of instruction written in a programming language that a computer can execute so that the machine acts in a predetermined way. • Program solves a problem • Before writing a program: • Have a thorough understanding of the problem • Carefully plan an approach for solving it. • Programming: • The Process of providing instructions to the computer that tells the processor what to do.
Algorithms and Programs
Algorithms and Programs • An Algorithm is a solution to a problem that is independent of any programming language.While • A program is an algorithm expressed using a specific set of instructions from any programming language.
Algorithm Example • Maximum of two numbers • Steps: • Read/input two numbers • Compare two numbers • Print the Greater number • Average of three numbers • Steps: • Read/input three numbers • Add three numbers • divide the sum by 3. • Print the result of divison
What How Do it Test Use Software Life Cycle Requirements Gathering, Problem definition Analysis and Design (Programming techniques) Coding Testing Implementation and Maintenance