a) (Please name this program Lab2b_Prog2a.py.) Write a 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. Let's...


Please help me solve parts a and b in python coding. Include screenshots of your code for better understanding. Thank you :)


a) (Please name this program Lab2b_Prog2a.py.) Write a program that will take two observed 3D<br>positions at two points in time, and then will calculate the 3D position at a third point in time.<br>Let's consider only times between the two observed times. You should output the x, y, and z<br>values for that position on separate lines. Begin by identifying the variables you will use, the<br>names for those variables, and the computations that should occur for those variables. Then,<br>write a program that will output the 3D position of the interpolated point on 3 separate lines.<br>For this initial program, you can use the following data values:<br>• At time 13, observed position was (1, 3, 7) meters<br>At time 84, observed position was (23, -5, 10) meters<br>You want to find the position at time 50 seconds<br>As for Program 1 above, please document your code using comments and print data labels and<br>units to the screen to identify your output. Sample output:<br>time of interest = 50 seconds<br>12.464788732394366 m<br>-1.169014084507042 m<br>8.56338028169014 m<br>x0<br>y0<br>z0<br>b) (Please name this program Lab2b_Prog2b.py.) Now, copy Lab2b_Prog2a.py from above into a<br>new program, Lab2b_Prog2b.py.. You are going to modify the program in the following ways:<br>a. When outputting the position, follow the output by a line of dashes (

Extracted text: a) (Please name this program Lab2b_Prog2a.py.) Write a 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. Let's consider only times between the two observed times. 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. For this initial program, you can use the following data values: • At time 13, observed position was (1, 3, 7) meters At time 84, observed position was (23, -5, 10) meters You want to find the position at time 50 seconds As for Program 1 above, please document your code using comments and print data labels and units to the screen to identify your output. Sample output: time of interest = 50 seconds 12.464788732394366 m -1.169014084507042 m 8.56338028169014 m x0 y0 z0 b) (Please name this program Lab2b_Prog2b.py.) Now, copy Lab2b_Prog2a.py from above into a new program, Lab2b_Prog2b.py.. You are going to modify the program in the following ways: a. When outputting the position, follow the output by a line of dashes ("---- b. Instead of just computing the interpolation at one point and printing the result, you will now compute it at 5 points. Copy the portion of the code (cut and paste the code) that is needed to recompute interpolation 5 times. You should now interpolate at the times -").
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here