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