#include <iostream>
using namespace std;
float sumForces(float time, float mass); //function prototype
int main(void)
{
	float time = 0;
	float dt = 0.1;
	float Ftot = 0;
	float accel = 0;
	float mass = 1;
	for (int i = 0;i < 10;i++)
	{
		Ftot = sumForces(time,mass);
		accel=Ftot/mass;
		//vnew=vcurr + dt*accel;
		//xnew =xcurr + dt*vcurr;
		//output time, accell, vnew, xnew
		//vcurr = vnew;
		//xcurr=xnew;
		time = time + dt;

	}
	return 0;
}
float sumForces(float time, float mass)
{
	float acceleration = 2 * time;  //acceleration proportional to twice the time
	return mass*acceleration; //F=ma
}