This activity is meant to give your team experience writing a larger program together.Your program should take as input the time and location of a moving object at two points, then using interpolation calculate the position at several intermediate times. Your program needs to perform the following tasks:•Prompt theuser to enter thetime and position at two points (see example output below)•Use interpolation to calculate the times and positions for three evenly spaced points between the two points entered by the user•Print the results using nice formattingoDisplay the times using one (1) decimal placeoDisplay the positions using two (2) decimal placesIn your program, write a function named interpolate()that calculates and prints your results.Before writing your program:It’s good practice to think before you code. As a team, follow the steps below.1.Make alist of the variables that your team will use in this program. Besure toinclude:a.The variable namesb.The type of each variable(data type)c.A very briefdescription of what each variable is (you can write one description for multiple variables if it is clear what they all are)2.Write a brief description of the calculations your program will perform, including a sample calculation done by hand.3.Finally, write your code as a team. Please name this file Lab3a_Act2.pyfor submission. Remember to test you code to make certain it works properly.
This activity is meant to give your team experience writing a larger
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images