Question
The following table contains 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
The following table contains 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 C program that reads a magnitude from the user and displays the appropriate descriptor as part of a meaningful message.
For example, if the user enters 5.5 then your program should indicate that a magnitude 5.5 earthquake is considered to be a moderate earthquake.
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