Question
The Richter scale is often used to measure the strength and potential damage caused by an earthquake. Design and write an algorithm which accepts as
The Richter scale is often used to measure the strength and potential damage caused by an earthquake. Design and write an algorithm which accepts as input a Richter scale reading and then prints a message indicating the appropriate corresponding "Damage Category" based on the Richter scale information in the table below: (20 pts.)
Richter Value Damage Category Description 1 - 3.9 Minor Some broken windows & swinging objects 4 - 5.9 Moderate Minor damage to structures 6 - 7.9 High Significant destruction of buildings 8 - 10 Major Few structures left standing
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