Java Reference
In-Depth Information
2 Analysis and Design
Figure 3-56 shows a requirements document for a new application, as requested
by a small business owner. Using the six phases of the development cycle as
shown in Table 3-1 on page 130, perform the following steps:
REQUEST FOR NEW APPLICATION
Date submitted:
November 12, 2007
Submitted by:
Patricia Wolinsky
Purpose:
The personnel department often is asked to do a quick computation
of an employee's state income tax. Personnel staff would save time
and provide more accurate information if members of the staff had
a stand-alone application at their disposal to perform the
calculation.
Application title:
State Tax Computation
Algorithms:
State tax is computed as follows:
State tax = 0.03 x (Income - (600 x Dependents))
Notes:
1) The personnel staff is accustomed to the following terminology:
Taxpayer's income for Income in the above algorithm,
Number of dependents for Dependents in the above algorithm,
State tax due for State tax in the above algorithm.
2) The application should allow the user to enter values for
Taxpayer's income and number of dependents, so that state tax
due can be computed.
3) The computation should be designated by the term, Compute.
Approvals
Approval status:
X
Approved
Rejected
Approved by:
Leslie Broda
Date:
November 19, 2007
Assigned to:
J. Starks, Programmer
FIGURE 3-56
1. Analyze the requirements. Read the requirements document carefully.
Think about the requester, the users, the problem, and the purpose of the
application.
2. Design the solution. Draw a storyboard for the program. Pay careful
attention to the inputs and outputs. Write either pseudocode or draw a
flowchart to represent the sequence of events in your program.
(continued)
Search WWH ::




Custom Search