Due Date: Monday, March 26, or Tuesday, March 27, 2007, before the beginning of your lab section.
Objective: The main objective of this assignment is to learn to design user-defined classes and ADTs.
Programming assignment: a complex number a + bi is characterized by its real part a and its imaginary part b. For complex numbers, the absolute value is defined as |a + bi| = sqrt(a^2 + b^2), a conjugate is defined as (a + bi)' = a - bi. Arithmetic operations are defined as follows:
Describe a class whose elements are complex numbers, and methods include:
Homework assignment: on a separate sheet of paper, solve Ex. 6 from p. 520 and Ex. 16 from p. 522.
Deliverables: as instructed by your TA.