Checkpoint 14.4.1.
Write your implementation of
calculatePolar
in the commented area of the active code below. Once you’re done with that, write the getMag
and getTheta
accessor functions. Read the comments in main
to see how we’ll test if your functions works. If you get stuck, you can reveal the hint below for help.