Question: PYTHON a)First, determine as a team how you will store the data in the file. You want to make sure you have agreement on how

PYTHON

a)First, determine as a team how you will store the data in the file. You want to make sure you have agreement on how entries in the data file will be stored.

b)Create a program that will read in data and store it in a file. Your program should prompt the user for the name of the file to use, ask what is being interpolated (the independent and dependent variables, how many data entries there are, and then request values be entered (similar to the way the previous program worked) until the user is done. This data should be written to the specified file in the format your team chose.

a.As an example, you might first ask for a file name,

b.Then you might ask what the independent variable (i.e. the x value) is. The user might enter time.

c.Then, you might ask what the dependent variable (i.e. the y value) is. The user might enter price.

d.Then you would repeatedly ask the user to enter information (time and price) until done.

All of that should be saved to the file in the format you describe.

c)Next, create a program that will prompt the user for a data file to read, and then will read in the data file, in the format given above. You should prompt the user for the file name. Then, repeatedly ask for values that the user wants to interpolate. You should print out each of the interpolated values.

a.For example, following the example above, you would ask the user for a time, and then you would give the price at that time (interpolated or extrapolated from the data you read in from the file).

EDIT* ANY FORMAT AND ANY INPUT VALUES

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 Databases Questions!