Question: I need to solve this problem in C language please. Problem 1: Earthquake Magnitude 0 pts The following table contains earthquake magnitude ranges on the
Problem 1: Earthquake Magnitude 0 pts The following table contains earthquake magnitude ranges on the Richter scale and their descriptors: Magnitude 2.0 to less than 3.0 Very minor Descriptor Micro Less than 2.0 3.0 to less than 4.0 4.0 to less than 5.0 5.0 to less than 6.0 6.0 to less than 7.0 7.0 to less than 8.0 8.0 to less than 10.0 10.0 or more Minor Moderate Strong Major Great Meteoric Write a function called EarthquakeMagnitude that receives no parameters and it returns back one integer value. The function asks the user to read 6 earthquake magnitudes (use a loop, don't define 6 variables) and then it counts how many of these 6 earthquakes can be described as a light earthquake. After you done, let the function returns back your result. Function Callings: Invoke/call/test this function from the main function and print the returned value in a proper message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
