Question: algorithm solve ODE

Dear all
I have an algorithm  to solve a first order odes, all steps of the algorithm ( as presented in the book are coded) but unfortunately something wrong. 
The algorithm and the code are attached in the following code. 
Thank you in advantage for your help.

Please Wait...