Fund. CS II (CS152 2006S)

Homework 1: Rational Numbers

Assigned: Monday, January 23, 2006
Due: 8:00 a.m., Tuesday, January 24, 2006

a. Make a list of all the operations you would expect a rational number (fraction) library to support.

b. Classify each operation as either Observer (extracts information from the rational number), Mutator (modifies an existing rational number), or Constructor/Converter (builds a new rational number or converts another kind of value to a rational number).

If you have difficulty with part two, don't worry about it.



Fall 2005 [Samuel A. Rebelsky]

Monday, 23 January 2006 [Samuel A. Rebelsky]


Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue May 9 08:31:06 2006.
The source to the document was last modified on Mon Jan 23 09:12:39 2006.
This document may be found at

You may wish to validate this document's HTML ; Valid CSS! ; Check with Bobby

Samuel A. Rebelsky,