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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education