Project #2
Due Date: Start of lecture, Wednesday, Feb. 9, 2005
The objective of this first project is to do a simple software
development
project, as described in the online document Systematic
Software Development.
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
common way
of representing the time of day internally (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 (.txt) 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 (.txt) 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
Extra credit bonus:
This extra credit bonus is to provide an incentive for starting your
project
early in the week.If you e-mail your "framework" listing file to
Prof.
Feldman, and the time stamp on the e-mail is no later than 5 PM,
Friday, Feb. 4, 2005, you will be awarded 2 extra project points. The
"framework"
must be a listing (.txt) file, with no compilation errors,
that
contains the declared variables, and a set of comments inserted for the
main algorithm steps.
E-mail the file as you did the survey form, e.g., pine mfeldman
<TimefDay.txt
MBF 1/27/05