Programming in C
Use an IDE to develop your work 
The National Earthquake Information Center has asked you to write a program implementing the following decision table to characterize an earthquake based on its Richter scale number.

Richter Scale Number (n)                                  Characterization
n < 5.0                                                                 Little or no damage

5.0 ≤ n < 5.5                                                      Some damage

5.5 ≤ n < 6.5                                                      Serious damage: walls may crack or fall

6.5 ≤ n < 7.5                                                      Disaster: houses and buildings may collapse         

Higher                                                                  Catastrophe:  most buildings destroyed

Could you handle this problem with a switch statement? If so use a switch statement; if not explain why.    

Programming in C
===

Use an IDE to develop your work 
The National Earthquake Information Center has asked you to write a program implementing the following decision table to characterize an earthquake based on its Richter scale number.

Richter Scale Number (n)                                  Characterization
n < 5.0                                                                 Little or no damage

5.0 ≤ n < 5.5                                                      Some damage

5.5 ≤ n < 6.5                                                      Serious damage: walls may crack or fall

6.5 ≤ n < 7.5                                                      Disaster: houses and buildings may collapse         

Higher                                                                  Catastrophe:  most buildings destroyed

Could you handle this problem with a switch statement? If so use a switch statement; if not explain why.    
