Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that for your observation the speed is constant, the first measurement was taken 30 seconds after you arrived, and the second was taken 45

Assume that for your observation the speed is constant, the first measurement was taken 30 seconds after you arrived, and the second was taken 45 seconds after you arrived. At the first measurement, the car was 50 meters past the starting line of the track. At the second measurement, the car was 615 meters past the starting line of the track.

  • Write a python program that determines, for any time between 30 and 45 seconds, where the car will be on the track (in terms of meters past the starting line). The time to evaluate at should be a variable in your program. The program should print both the time and the position at that time to the screen, with a line describing what is being output. You should test your program at various times and make sure the results seem reasonable
v=-22.33 a=1.6 t = int(input('Enter the time:')) d=(v * t )+(0.8* (t ** 2)) print('The position is',d,'meters')

In the earlier team project, your team put together a python program that interpolated between two values. This was a one dimensional (1D) interpolation, since you were interpolating only a single value, the distance on the track. You are now going to extend that program to one that will linearly interpolate between two points in 3D.

  1. Write a python program that will take two observed 3D positions at two points in time, and then will calculate the 3D position at a third point in time. You should output the x, y, and z values for that position on separate lines. Begin by identifying the variables you will use, the names for those variables, and the computations that should occur for those variables. Then, write a program that will output the 3D position of the interpolated point on 3 separate lines. Save this program as Program2a.

For this initial program, you can use the following data values:

At time 13, observed position was (1, 3, 7)

At time 84, observed position was (23, -5, 10)

You want to find the position at time 50

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago