Skip to main content
Logo image

Section 28.9 Assembling the Complex Number Library

It’s time to write all of the functions in the library! With your group, please decide which function you’d like to work on first. In order to make sure that we can get all functions covered (after all, we would like to have a working library by the end of class today), we’ll use a google doc in which we keep track of who is working on what. Access to this google doc is at the bottom of this page.

Activity 28.4.

Please visit today’s Google Doc at the bottom of the page to sign up for a function you wish to write. We’ll also share our code in this Google Doc.
For your convenience, here is a code window for you to test individual functions. Note that you’ll have to write your own main() function that tests your code.

admin.....open in new window

Access to our class google doc is provided below. Please make sure that you have turned off “smart quotes” before pasting any code into the below google doc. Smart quotes are those curly pretty-looking quotation marks that’ll get our compiler all bent out of shape. To turn off smart quotes in google:
  • Open any Google doc.
  • Click on "Tools" in the menu bar.
  • Select "Preferences..."
  • Uncheck the box "Use smart quotes".
Note that this choice will affect all of your future Google documents: whenever you hit the quotation mark key on your keyboard, from now on straight marks will appear. This does not affect already existing smart quotes in existing documents - only newly typed quotes are affected. As soon as you turn smart quotes back on by checking the "Use smart quotes" box, smart quotes will be enabled again.

If you cannot see this document, please click here.