Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started