Project #3
Due Date: Start of lecture, Thursday, Sept. 25, 2003
The objective here is to do one more simple software development
project,
as described in the online document Systematic
Software Development. It depends on material through Section
2.9.
This is the last project before the first exam.
Problem Specification:
You and your roommates are lovers of good pizza, but you're also
careful
about how you spend your snack money. The local pizzeria, "Leaning
Tower
of Pizza", offers three sizes of round pizza, small, medium, and large,
each with its own diameter (in inches) and price. Always looking for a
bargain, you and your friends decide to order the pizza that has the
lowest
unit
price, that is, price per square inch. You write a program that
accepts
the diameter and price for each of the three pizzas, and calculates and
displays the unit price of each one.
Use the Math and NumberFormat classes where
appropriate.
To lend realism to the project, visit or call one of the local pizza
delivery places, to find out their diameters and prices. Indicate in
your
report whom you called or visited.
What to submit:
You must follow the process given in Systematic
Software Development and the sample project packet distributed
in class.
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:
We'll continue the 2-point bonus for getting an early start. 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, Monday, Sept. 22, you will be awarded 2
extra
project points. The "framework" must be a listing (.lis) file,
with no compilation errors or warnings, that contains the declared
variables,
and a set of comments inserted for the main algorithm steps.
MBF 9/15/03