Hello everyone! I'm a student and I'm beginning my class in c++. My assignment is asking for a loop. I don't understand how to start the loop or to get where I want to go with the program. I just need a push in the right direction.
Here's the objective:
The data consists of a series of position measurements for a moving object. The position measurements will be entered by the user of the program as they are continually prompted. Each of the position measurements that the user enters will have been recorded at uniform time intervals. This time interval will be entered by the user when the program begins and will be followed by the series of position measurements. Each position should be greater than or equal to the previous position because the object is either moving in one direction or still, but never moving backwards. Therefore a negative position measurement will be used to signal the end of the user's data for the run of the program.
After each of the position measurements has been entered, calculate and display the following:
the average velocity for this time interval
the average acceleration for this time interval
Any help would be greatly appreciated. Thanks everyone!!