Examples of Requirements
- Display a Text File
- The user enters a filename. The program then displays on the screen
the contents of the file corresponding to that name, and exits.
- The filename does not correspond to a file, so the program informs
the user of this problem and exits.
- A Gradebook Program
- Add a student
- Add a set of student grades for a given assignment
- Compute student final average
- Compute maximum, minimum, average, and median scores for an assignment
- Display the entire gradebook in a table
- Print the gradebook
- A Simple Web Browser
- The user types a URL in a text box. The program sends the request to
the server designated in the URL, and waits for data. When the data
arrives, the program displays the corresponding web page.
- If the user clicks the Stop, Back, or Forward button before the data
arrives, the program sends a cancel message to the server and does not
display the page.
- If the data does not arrive, the program sends additional requests,
giving up after 2 minutes if no information is received from the server.
- If the user clicks the Back button, the program shows the preceding
page in the viewed-page list.
- If the user clicks the Forward button, the program shows the following
page in the viewed-page list.
- If there is no preceding/following page when the Back/Forward button is
clicked, the program does nothing.
(next)