Homework 6

CS18

100 pts., due May 10

Do project 36 on pg. 199 of Carrano. Implement the methods outlined in exercise 7 on pg. 138, as well as the operations of addition, subtraction, multiplication, and assignment. We will discuss the details of this assignment in class on May 3. In particular, we will learn how to overload operators, so that we can write code like this:

Polynomial x, y, z;

// Code to initialize y and z;

x = y + z;
Read pp. 384--386 of Carrano.



Thomas P. Kelliher
Wed May 1 10:50:31 EDT 1996
Tom Kelliher