His powf() isn't wrong as far as I see, he's using floats for everything.
EDIT: Nevermind, I missed the int declaration. benlangdon - Why exactly are you using int for term1?
EDIT2: Are you sure 798.36 is the correct result? Doing the calculation on my TI-89 resulted in 8400 which is also what I get upon compiling and running your code. By the way - if you're going to input the monthly rate as a percentage as the assignment says, then you're going to need to convert it to a decimal value first. (1 + rate) is not supposed to be (1 + 7), its supposed to be (1 + 0.07). You corrected this by inputting .07 as your input in Xcode, but technically that's not correct as the assignment says to do it.
ya i changed it to int for some reason but i changed it back almost right after i posted this.
ya i worked it out to on my ti84 and got the same thing it was like 805 instead of 798
i give up i emailed my teacher with all this. i give up