Below is the function that takes two parallel lists;
List of times in increasing order and that of distance travelled by that point in time.
I put into consideration the instructions given in the question.
ANSWER;
def find_velocity(time, distance):
velocities = []
for i in range(1, len(time)):
velocities.append((distance[i] - distance[i - 1]) / (time[i] - time[i - 1]))
return velocities
times are = [1, 3, 5, 7]
distances are = [25, 29, 35, 70]
print(find_velocity(times, distances))
Answer:
See Explanation
Explanation:
I'll assume the question is about the use of constants in QBasic because consonants do not have any special function or usage in QBasic.
In simple terms: In QBasic, constants are used to represent elements that do not change in value during program execution.
Take for instance, you intend to use in your program.
Its value is
So, 3.142 will always be a constant in your program. One of the ways it can be used in a program is:
10 LET PI = 3.142
<em>The above represents a numeric constant. QBasic also have string constants.</em>
Answer:
what is this?Are yhere any options for this question ❓