Computer Programming
Objectives Program and Programming Algorithms & Programs Software Life Cycle
Program and Programming
Program and Programming 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 Read/input three numbers Add three numbers divide the sum by 3. Print the result of divison
Software Life Cycle
Software Life Cycle What Requirements Gathering, Problem definition How Analysis and Design (Programming techniques) Do it Coding Test Testing Use Implementation and Maintenance