
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
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]](https://content.bartleby.com/qna-images/question/776a07ce-21ba-443e-aa37-00f610ca7adb/09943fe9-7bbd-4c6e-8c3f-cdb633e58c52/74cs8dr_thumbnail.png)
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

Knowledge Booster
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
- Python3arrow_forward4arrow_forwardCode in C++ Language As a cashier, you would always hate those times when customers choose to take back their order since you'd always summon your manager and yell, "Ma'am pa-void!" No matter how you hate it, you always have to do it since you have no other choice. Given (1) an array of prices of the items, (2) another array of the items the customer wishes to take back, and (3) the customer's payment, print the change of the customer. Input: The first number indicates the number of items "n" brought to the cashier. The next "n" numbers are the prices of the items. The next number indicates the number of items "m" that the customer wants to take back and not proceed. It is assured that 0 <= m <= n. The next "m" numbers are the items to be void that ranges from item 1 to item "n". The final number is the customer's payment. It is also assured that the given payment >= final price of items. INPUT: 5 103.65 650.95 10.25 1067.30 65.18 2 1 5 2000.00 Output: The change…arrow_forward
- C++ PROGRAM Create a class 3D point to model points in 3-dimensional space. Provide appropriate constructors and get/set methods in the class. Using friend functions, overload the following operators. + operator to add two 3D points. - operator to subtract two 3D points. ~ operator to find the distance between two points.arrow_forwardComputer Science Part C: Interactive Driver Program Write an interactive driver program that creates a Course object (you can decide the name and roster/waitlist sizes). Then, use a loop to interactively allow the user to add students, drop students, or view the course. Display the result (success/failure) of each add/drop.arrow_forwardC++ Language Please add an execution chart for this code like the example below. I have provided the code and the example execution chart. : JUST NEED EXECUTION CHARTTT. Thanks Sample Execution Chart Template: 1.0 Main()2.0 CalculatePropertyTax()3.0 displayMessage( input string messageToDisplay)3.1 return double getHomeValue()3.2 return boolean checkHomeValue()3.3 return double applyPropertyTax(input double homeValue)3.4 displayPropertyTax(input homeValue)3.5 return Boolean queryMoreData()4.0 displayMessage(input string messageToDisplay)4.1 return char getYesNo()4.2 return char convertCase(input char)3.6 displayErrorMessage() CODE: Maincpp: #include <iostream> #include <fstream> #include "BankAccount.h" using namespace std; const int SIZE = 8; // function declaration for array void fillArray (ifstream &input,BankAccount accountsArray[]); int largest(BankAccount accountsArray[]); int smallest(BankAccount accountsArray[]); void printArray(BankAccount…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education