The attached graph.csv file contains lines with x and y coordinates of a graph. For example, 0.0 3.0 0.1 3.0 0.2 2.99 0.3 2.98 0.4 2.97 : : Note: Please name the Python file plotting.py. The system will not accept any other name. The first number and second number are x and y-coordinate of a point in Cartesian coordinate. Write a program to open and read the attached graph.csv file and plot the data. Note, the graph.csv file is downloaded as zip file. Unzip it. Put it in the same directory where you write the program in PyCharm environment. You can copy the file in File Explorer and paste it in PyCharm. Hint: Use the csv module to read the graph.csv. The data are string and they need to convert to float. Test your program before submitting it.
The attached graph.csv file contains lines with x and y coordinates of a graph. For example,
0.0 3.0 0.1 3.0 0.2 2.99 0.3 2.98 0.4 2.97 : :
Note: Please name the Python file plotting.py. The system will not accept any other name.
The first number and second number are x and y-coordinate of a point in Cartesian coordinate. Write a program to open and read the attached graph.csv file and plot the data.
Note, the graph.csv file is downloaded as zip file. Unzip it. Put it in the same directory where you write the program in PyCharm environment. You can copy the file in File Explorer and paste it in PyCharm.
Hint: Use the csv module to read the graph.csv. The data are string and they need to convert to float. Test your program before submitting it.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images