Java Reference
In-Depth Information
getShipping() Method
Accept Weight in Ounces
If Ounces > 16
Shipping = 12.95 + ((Ounces-16) * .30)
calculation
Else
decision
Shipping = 12.95
End If
End
FIGURE 1-15
The end result of designing a program solution is the creation of technical
documentation that explains how the program will meet the requirements. Any
documents that relate to the design of the user interface should be made avail-
able to the user, who must verify that the design is correct and that the program's
usability , which is a measure of a user's ability to interact with a program in a
reasonable and intuitive manner, is acceptable.
Most programmers use combinations and variations of these program
design tools. Your instructor or supervisor may prefer one type of design tool to
another, and you will probably find one or two more useful than others as you
develop your own programming style. In addition, companies often have written
standards that specify the tools they use to design programs.
Validate the Design — Phase 3
The third phase in the program development cycle is to validate the design,
which means that both the programmer and the user must check the program
design. The programmer steps through the solution with test data to verify that
the solution meets the requirements. The user also must agree that the design
solves the problem put forth in the requirements. The validation of the design
gives the user one last chance to make certain that all of the necessary require-
ments were included in the initial requirements document. By comparing the
program design with the original requirements, both the programmer and the
user can validate that the solution is correct and satisfactory.
The design of the Shipping Charge Calculator can be validated by using a
test case for input data and then stepping the test data through both the equa-
tion written in the requirements document and the algorithm presented in the
program design. The results can be compared to be sure they match.
 
Search WWH ::




Custom Search