Академический Документы
Профессиональный Документы
Культура Документы
1. Introduction
This document describes the behavior of a simple four-function calculator application
intended for use on both Windows and Macintosh personal computers. The application
will model the behavior of a standard four-function pocket calculator as closely as possible.
2. Environment characteristics
2.1. Hardware
The application should run on both IBM-compatible and Macintosh hardware.
4. Software functions
4.1. Number entry
The application will present a visual keypad where one digit at a time can be added to the
display by using the mouse to select one of the digit buttons. An optional negative sign can
be entered before any digits have been entered; thereafter, the negative button will be
ignored. As long as an operation has not been requested, digits will be added to the righthand side of the current number. This number will be displayed in the display area as it is
composed. Number entry restarts after any arithmetic operation, result display, value storage, or clear operation is requested.
4.6. Clear
Clicking on the Clear button erases any value that appears in the display area and resets
number entry. Clear does not affect the remembered value or the operation that has been
requested.
5.2. Usability
The interface of the calculator should be as close to the appearance and operation of a
physical calculator as possible. The appearance of the application on the two platforms
should be a close to identical as possible.
Basic calculation - entering two numbers and calculating a result. The Clear button should also work in this subset.
2.
Store and recall - in addition to the basic calculation functions, allow storage and
recall of one value.
3.
Accept pasted values - in addition to the basic calculation functions, allow a value
copied from another application to be pasted into the display area.
Note that subsets 2 and 3 are essentially independent and could be implemented in either
order.
2.
3.
4.
5.
6.