Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(use python)The following table contains earthquake magnitude ranges on the Richter scale and their descriptors: Magnitude Descriptor Less than 2.0 Micro 2.0 to less than

(use python)The following table contains earthquake magnitude ranges on the Richter scale and their descriptors:

Magnitude Descriptor
Less than 2.0 Micro
2.0 to less than 3.0 Very minor
3.0 to less than 4.0 Minor
4.0 to less than 5.0 Light
5.0 to less than 6.0 Moderate
6.0 to less than 7.0 Strong
7.0 to less than 8.0 Major
8.0 to less than 10.0 Great
10.0 or more Meteoric

Write a function called EarthquakeMagnitude that receives nothing and it returns back one value which is a list.

The function reads 6 earthquake magnitudes from the user (using a loop) and stores their descriptors in a list.

The function then returns back this list.

Invoke/call/test this function from the main function and print the returned list (one element per line).

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_2

Step: 3

blur-text-image_3

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions