Steps in Problem Solving Template - Age Prog
Steps in Problem Solving Template - Age Prog
9 Steps in Programming
Step 1 Define the problem (Problem Definition)
Step 2 Propose and Evaluate Solutions
Step 3 Determine and Outline the solution (IPO Chart)
Step 4 Develop the algorithm (Algorithm) / Flow Chart
Step 5 Test and validate the algorithm (Trace Table)
PROGRAM IMPLEMENTATION
Step 6 Code the algorithm into Program (Code program / Create source code)
Step 7 Compile or Interpret or Link program
Step 8 Execute or Run the program (Run on Compiler or Interpreter)
Step 9 Document and maintain the program (add comments, make changes)
(1) Write an algorithm and program to enter the current year, an individual’s year
of birth and it calculates and prints, the age of the individual.
1
Step 3 Outline the solution (IPO Chart)
IPO Chart
INPUT PROCESS OUTPUT
CurrentYear Read CurrentYear Age
BirthYear Read Birth Year
Age = CurrentYear -
BirthYear
Print Age
FLOW CHART
BEGIN
END PROCESS
CONNECTOR
FLOW
Step 9 Document and maintain the program (add comments, make changes)