Ive been trying to do a physics simulator that calculates the Work and the Force and that shows acceleration, displacement and time and you put the mass, the initial velocity, initial height and gravity. I'm having problems doing it, what i have is the image attached above and i want to know if you can tell me what to do, because I'm lost and i don't know much calculus. if you could do like a fast example you would save my life and my grades . Please please help me

is this what you want? there no need for calculus if when calculating the work done and force since the only force i see in your simulation is gravity force.

workdone by gravity force= m*g*(yi-y); force = m*g;