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.
Answer / prince
no need of changing that we know that this ranges produce
damages
Is This Answer Correct ? | 1 Yes | 5 No |
Which of the following elements is obtained from sea weeds? 1 Argon 2 Sulpur 3 Vanadium 4 Iodine
Which of the following is the basis of modern periodic table? 1 Atomic mass 2 Atomic number 3 Atomic size 4 Atomic volume
Which gas is used for preparation of soda water? 1 Ammonia 2 carbon dioxide 3 Hydrogen 4 Nitric oxide
Who is the first female cosmonaut?
Which is the regulatory authority of atomic energy in india?
Why is ice wrapped in gunny sacks to prevent it from melting
What is light year?
What is super nova?
Which of the following is used to coagulate synthetic fibers from solution? 1 Hydrochloric acid 2 Sulphuric acid 3 Nitric acid 4 None of these
0.005M K2Cr2O7 solution for calibration of UV.why 0.005M K2Cr2O7?
different types of satellite?
What would happen had there been no chlorophyll in the green leaves?