Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function that can read data from csv files. Write a function that can write data to csv files. Write a main file that

Write a function that can read data from csv files.
Write a function that can write data to csv files.
Write a main file that calls the functions to read data from HomeworkInput1.csv and
HomeworkInput2.csv.
The csv files are comma separated.
Data in both files are time-velocity (the first column is time and the second column is
velocity.)
Calculate the average of the velocities at the same time. e.g., average velocity =(velocity of
HomeworkInput1+ velocity of HomeworkInput2)/2
Using the input data and the calculated average, duplicate the figure below. Your figure
should be the same as the figure shown in Figure 1 except the size of the figure.
Write the time, velocities to FirstName_LastName_HW1Out.csv file. Your output file should
have the same format shown in Table 1. Note that the first column is time, the second column is
the velocity from HomeworkInput1.csv, the third column is the velocity from HomeworkInput2,
and the fourth column is the average velocity.
Submit a zipped (compressed) file that includes all your python codes, output file, and the figure
file. You can save the figure in any format that can be read in a Windows machine.
The submitted zipped file should have two function files (read and write), a main file, an output
file, and a figure file. All files should be the same file naming conventions (First
Name_LastName_file name)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

why the actual size not 8 0 GB in Virtual Machine + Cyber Security

Answered: 1 week ago

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago