I can get the program to compile and run, but my teacher is telling me this.
You are using the variables incorrectly.
You have an error in the subprogram that causes the subprogram output to
be incorrect. There should not be any local variables. Take them out and
use the variables in the parenthesis for the formal parameters. If you
declare the variables as local like you are doing, you are not using the
values that are being passed into the subprogram.
I've looked at my code over and over, and I don't see what she's talking about. Am I just over looking it?