Analyze Problem and Design Program A nalyzing the problem consists of reviewing the program specifications package and identifying the program's components. Designing the program involves grouping the program activities in modules, devising a solution for each module, and testing the solution algorithm. Each subroutine that performs a single function is called a module . Proper Program Design A proper program is designed in such a way that the program, each of its modules, and each of the control structures has no dead code , no infinite loops , one entry point , and one exit point . Code Program and Test Program C oding a program involves translating the solution algorithm into a programming language.
Testing ensures a program runs correctly.
Syntax errors occur when the code violates the rules of the programming language. Logic errors are present when the expected result and the actual result do not match. Errors in a program are referred to as bugs . The process of locating and correcting errors is called debugging the program. I n formalizing the solution , the programmer removes any dead code.