Question: Algorithm. One formula for computing the distance an object travels is: s = (v_i + v_f)t/2 where: s = distance traveled v_i = initial velocity

Algorithm. One formula for computing the distance an object travels is: s = (v_i + v_f)t/2 where: s = distance traveled v_i = initial velocity of the object v_f = final velocity of the object t = amount of time the object traveled a. Write an algorithm for computing the distance traveled for some object. The initial velocity, the final velocity, and the amount of time the object traveled are required inputs for this problem. The output is the distance traveled. Use plain English statements (no programming instructions required), and number your steps. For our purposes you may ignore units. a. We would like for the distance traveled to be a floating point value. Discuss any issues involved in making sure that a C program will compute the correct value using the formula above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
