I'm writing a code that reads data from an input file and uses it to calculate the acceleration of a rocket. The data I have shows time and velocity where the rocket during the first couple of seconds (0, 0.1, 0.2) is at a stand still and the velocity remains at 0. I'm new to using arrays and am trying to figure out if it's possible to use only one array in a loop to calculate acceleration. I'm having difficulty because the first few moments have a time of 0 which would lead to division by zero. My code is empty of arrays but I'll include it just in case anyone would like to take a look. I have a few prototypes included but those were given by my instructor to be used but I've yet to effectively use them in the code.