Java Reference
In-Depth Information
Table 2-1 Welcome to My Day Program Development Tasks
DEVELOPMENT PHASE
TASK(S)
1
Analyze the requirements
Analyze the Welcome to My Day problem.
2
Design the solution
Design the user interface for both the application and the applet including
output data and placement of the applet graphic. Design the logic to solve
the problem.
3
Validate the design
Confirm with the user that the design solves the problem in a satisfactory
manner.
4
Implement the design
Translate the design into code for both the application and the applet.
Include internal documentation (comments and remarks) within the code
that explains the purpose of the code statements. Create the HTML file to
host the applet.
5
Test the solution
Test the program. Find and correct any errors (debugging) until it is error-
free.
6
Document the solution
Print copies of the application code, applet code, applet interface, and HTML
code.
Analysis and Design
The first two phases in the development cycle — analysis and design —
involve analyzing the problem to be solved by the program and then designing
a solution. Once programmers complete the analysis phase and fully understand
the problem to be solved, they can start the design phase and work with users to
design a user-friendly interface. Toward the end of the design phase, program-
mers design the logic behind the program.
Figure 2-2 shows the requirements document that initiates the development
cycle for the Welcome to My Day program. The design requirements listed by
the user are specific enough to allow for the development cycle to begin. The
document specifies the reason for the request, the specific required output,
and a description of both the application and the applet.
PROBLEM ANALYSIS The problem that the Welcome to My Day program
should solve is to create a prototype welcome splash screen that displays a wel-
come message, user's name, and the date on the screen. A prototype is a func-
tional working model of a proposed system, created to make sure it meets users'
needs. The prototype welcome splash screen is the first step in implementing a
company-wide electronic calendar application. This prototype later could be
modified to interface with the database of the electronic calendar application.
The requirements document has outlined the need for a prototype splash
screen. Splash screens generally serve two purposes: (1) to let the user know that
the program has started, and (2) to provide information that the user may read
while waiting for the entire application to load. As outlined in the requirements
document, both the application and the applet versions of the splash screen
should display output to the user in the form of text. The text displayed includes
a welcome message, the user's name, and the system date , which is the current
date and time generated by the operating system of a computer. Additionally, the
requirements document requests that the applet version of the program includes
color and a graphic.
 
Search WWH ::




Custom Search