Programming By Stepwise Refinement
Task: write Java program that solves P
An �algorithm� for you to follow when programming:
-
if ( P is simple enough to code immediately )
Write the Java code that solves P;
Refine P into subproblems;
Write Java code that solves each subproblem;
}
The refinement of P into subproblems must include a description of how the code segments solving the subproblems combine to form code that solves P.
You can write the Java code segments that solve the subproblems in any order.