90 likes | 99 Views
Learn about computer programming, algorithms, programs, and the software life cycle in this comprehensive guide. Understand the objectives, process, and techniques involved in writing and implementing programs. Explore the importance of requirements gathering, problem definition, analysis and design, coding, testing, implementation, and maintenance. Improve your programming skills and become proficient in solving problems effectively.
E N D
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