Classwork 19
- Due Mar 29, 2016 by 11am
- Points 10
- Submitting a file upload
- File Types py
- Available until Apr 19, 2016 at 9:30am
For the following exercises we have provided you with some starting code in python. Download the .py files and put them in your computational thinking folder (the one we created on installation). Open the files in spyder, add your name at the top next to the "Author" field and write the code for the exercise in it. Upload all the appropriate files to each question as your response to this assignment.
Problem #1
File: cw-19-q1.py Download cw-19-q1.py
To answer this question show two line plots, with the magnitudes for earthquakes in each state, in a single window.
Problem #2
File: cw-19-q2.py Download cw-19-q2.py
We want to answer the following question: Is there a relation between an earthquake's magnitude and its depth?
In order to answer this question, show a scatter plot with the depth on the horizontal axis and the magnitude on the vertical axis.
Problem #3
File: cw-19-q3.py Download cw-19-q3.py
We want to answer the following question: What is the distribution of earthquakes across the categories of magnitudes? That is, which magnitudes occur more frequently than others?
In order to answer this question, show a histogram of the magnitudes of the recorded earthquakes.