Project #1
Due Date: Start of lecture, Thursday, Sept. 12, 2002
The objective of this first project is to do a simple software development
project, as described in the online document Systematic
Software Development.
Before proceeding to the body of the project, it is essential that you
do the following, just for practice:.
-
read the above document
-
copy and compile the CoinCollection program that appears in the
document
-
run the CoinCollection test plan using turnin
Problem Specification:
From the so-called "Y2K problem" in the year 2000, we know that an important
function of software systems is keeping track of dates and times. One way
of representing the time of day (to the nearest second) is as an integer
number in the range 0 to 86399. (Why is 86399 the maximum value?) This
value indicates the number of seconds that have elapsed since midnight
on the given day.
Since people are not very good at keeping time by seconds, it is helpful
to convert this single value into a set of three values that represent
the hours, minutes, and seconds of the current time. We will use a 24-hour
representation of the time; for example, 6:21:36 PM is given as 18:21:36.
Your task is to produce a program that will prompt the user for the number
of seconds since midnight, and then compute and display the time of day.
Call this program TimeOfDay.
What to submit:
You must follow the process given in Systematic
Software Development. Submit
-
a copy of this page as a problem specification
-
a paper document (from a word processor or neatlyhand written) that
presents the analysis, design, and test plan for your project
-
a printout of the listing (.lis) file for your program in its
"framework" first stage, with variables declated and comments inserted
for the main algorithm steps
-
a printout of the listing (.lis) file for your program in its
final stage
-
a printout of a turnin file of your test runs, showing that you tested
the program according to the test plan
Your grade will be calculated on a 20-point basis, as follows:
-
6 points -- analysis and design (including algorithm in structured English)
-
4 points -- test plan
-
6 points -- correct execution of program according to test plan
-
4 points -- layout and style of program source code
MBF 9/2/02