I need more help in Exercise_2 of First Programming Assignment

This is a duplicate thread. I already answered on your other thread about this. In addition to the hard-coding of the parameter value that Lucas pointed out, your implementation does not match the math formula given in the instructions.