Solving a problem for the computer

Problem - You want to develope a program to calculate the area of a circle.  You want to reuse it to calculate the area of any size of circle.

Steps

  1. Understand the problem.
    1. A circle area is calculated using the formula: area = PI * radius2
    2. PI is approximated by 3.14.
    3. The radius will be variable for each execution.
  2. Design a solution.
    1. Define our containers.
    2. Get input.
    3. Calculate the area.
    4. Output the area value.
  3. Test the solution.