Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The energy in joules released for a particular Richter scale measurement is given by: E=10^(1.5*r+4.8) where E is energy measured in joules and r is

The energy in joules released for a particular Richter scale measurement is given by: E=10^(1.5*r+4.8) where E is energy measured in joules and r is the Richter scale measurement (typically on a scale from 1-10 as a floating point number). One ton of exploded TNT yields 4.184109 Joules. Thus, you can relate the energy released in joules to tons of exploded TNT. For each of the following Richter scale measurements (set up a for loop), write a Python function called Richter.py with one input array and two outputs. The input is an array of Richter scale measurements and the output are arrays with the energy in Joules and tons of TNT.

3.0 6.0 9.1 (Indonesia earthquake, 2004) 9.2 (Alaska earthquake, 1964) 9.5 (Chile earthquake, 1960; largest ever measured) Your function should also display to the screen a table with three columns of the data. The first column is the Richer scale measurement the second is the energy in Joules and the third column is the energy in tons of TNT. For the display make sure the data columns line up.

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions