Question: This is Python and about the Linear interpretation Code. I really need to know how to do these 2 program. pls let me know how

This is Python and about the Linear interpretation Code. I really need to know how to do these 2 program. pls let me know how to do these 2 to be specific.

This is Python and about the Linear interpretation Code. I really need

You arrive at a racetrack and observe a car moving around a track at what appears to be a constant rate of speed. You would like to be able to predict where the car is at any point in time. To do this, you take a measurement of how far around the track the vehicle has traveled at two points in time. Assume that the track is marked so that you can determine position very precisely. You note the time of this first position measurement. A short while later (before the vehicle has passed the "starting" point on the track), you take a second measurement for how far around the track the vehicle has traveled, again noting the time. Now, assume that you'd like to reconstruct the position of the vehicle at any time between the first measurement and the second. Since you assume the vehicle is moving at constant speed, this calculation can be found precisely by linear interpolation. . Determine what variables you will need to use, and what formula(s) you will need to use to perform this calculation. You should use variables for all of the values that could change. First )Now, assume that for your observation, 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 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. For your final program that you turn in, you can assume that you want to know the position at a time 37 seconds after you first arrived. (Next week, we will see how you can read in numbers from a user, but for now, just assume it is a fixed number of seconds.) Second) Assume the racetrack is circular with radius 0.5 kilometers. Assume the same observed data as before: 30 seconds after you arrive, the car is 50 meters past the starting point, and 45 seconds after you arrive, the car is 615 meters past the starting point. Assume the car's speed is constant. When a time is specified, we want to report the distance from the starting point, not the total distance traveled, So, every time the car passes the starting point of the track, its "distance" from the starting point gets reset to zero (0), So, if you go far into the future, say at a point 20 minutes after your arrival time, simple linear interpolation will not produce the result we want. You'll need to modify your code to report distances correctly regardless of the time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!