Ask Question
30 January, 23:07

N physics, a common useful equation for finding the position s of a body in linear motion at a given time t, based on its initial position s0, initial velocity v0, and rate of acceleration a, is the following: s = s0 + v0 t + ½ at2 Write code to declare variables for s0 with a value of 12.0, v0 with a value of 3.5, a with a value of 9.8, and t with a value of 10, and then write the code to compute s on the basis of these values. At the end of your code, print the value of your variable s to the console.

+5
Answers (1)
  1. 31 January, 01:36
    0
    I presume the 2 at the end of the formula is a typo (as the 2 and half will cancel each other out if it means to multiply by 2)

    pseudocode excludes it: float s0 = 12.0

    float v0 = 3.5

    float a = 9.8

    float t = 10

    s = s0 + v0 * t + (a * t) / 2 Output (s)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “N physics, a common useful equation for finding the position s of a body in linear motion at a given time t, based on its initial position ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers