Assignment Overview¹ This assignment focuses on the design, implementation, and testing of a Python program to display information about the energy released by earthquakes (see below). Assignment Specifications For each of the following Richter scale measurements, your program will perform the appropriate calculations and display the equivalent amount of energy in joules and in tons of exploded TNT: 1.0 5.0 9.1 (Indonesia earthquake, 2004) 9.2 (Alaska earthquake, 1964) 9.5 (Chile earthquake, 1960; largest ever measured) Then, your program will then prompt the user to enter a Richter scale measurement, accept a floating-point value representing that measurement, perform the appropriate calculations, and display the equivalent amount of energy in joules and in tons of exploded TNT for that user- selected value. Assignment Notes The Richter scale is a way to quantify the magnitude of an earthquake using a base-10 logarithmic scale. The magnitude is defined as the logarithm of the ratio of the amplitude of waves measured by a seismograph to an arbitrarily small amplitude. An earthquake that measures 5.0 on the Richter scale has a shaking amplitude 10 times larger than one that measures 4.0 and corresponds to a 31.6 times larger release of energy. [Rephrased from Wikipedia]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Assignment Overview¹
This assignment focuses on the design, implementation, and testing of a Python program to
display information about the energy released by earthquakes (see below).
Assignment Specifications
For each of the following Richter scale measurements, your program will perform the
appropriate calculations and display the equivalent amount of energy in joules and in tons of
exploded TNT:
1.0
5.0
9.1 (Indonesia earthquake, 2004)
9.2 (Alaska earthquake, 1964)
9.5 (Chile earthquake, 1960; largest ever measured)
Then, your program will then prompt the user to enter a Richter scale measurement, accept a
floating-point value representing that measurement, perform the appropriate calculations, and
display the equivalent amount of energy in joules and in tons of exploded TNT for that user-
selected value.
Assignment Notes
The Richter scale is a way to quantify the magnitude of an earthquake using a base-10
logarithmic scale. The magnitude is defined as the logarithm of the ratio of the amplitude of
waves measured by a seismograph to an arbitrarily small amplitude. An earthquake that
measures 5.0 on the Richter scale has a shaking amplitude 10 times larger than one that measures
4.0 and corresponds to a 31.6 times larger release of energy. [Rephrased from Wikipedia]
Transcribed Image Text:Assignment Overview¹ This assignment focuses on the design, implementation, and testing of a Python program to display information about the energy released by earthquakes (see below). Assignment Specifications For each of the following Richter scale measurements, your program will perform the appropriate calculations and display the equivalent amount of energy in joules and in tons of exploded TNT: 1.0 5.0 9.1 (Indonesia earthquake, 2004) 9.2 (Alaska earthquake, 1964) 9.5 (Chile earthquake, 1960; largest ever measured) Then, your program will then prompt the user to enter a Richter scale measurement, accept a floating-point value representing that measurement, perform the appropriate calculations, and display the equivalent amount of energy in joules and in tons of exploded TNT for that user- selected value. Assignment Notes The Richter scale is a way to quantify the magnitude of an earthquake using a base-10 logarithmic scale. The magnitude is defined as the logarithm of the ratio of the amplitude of waves measured by a seismograph to an arbitrarily small amplitude. An earthquake that measures 5.0 on the Richter scale has a shaking amplitude 10 times larger than one that measures 4.0 and corresponds to a 31.6 times larger release of energy. [Rephrased from Wikipedia]
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education