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 Posted / prince
no need of changing that we know that this ranges produce
damages
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is the significance of international geo - physical year?
first aid to person affected with electrical shock
Which was the international geo - physical year?
Please can someone tell me, how many times during a 12 hour period, do the hands of a clock face opposite each other? I believe its 11. Also, would this be the same, no matter WHAT the starting time? i.e. if the 12 hour period started at 6 o clock, would it still be 11 times? Many thanks for your help.
What is super nova?
When was the first american rocket launched?
List and explain two instances of Correlation Science with Life Situation
What are luminous irregular nebulae?
Science is both a process and product-Substantiate
Which are the two reactors at the indira gandhi centre for atomic research ( igcar )?
A team of u.n scientists visited thumba?
Which are the research centres of department of atomic energy?
what are advantages of excess populatoin?
a private address 172.116.0.0 will borrow ? bits from the HOST to give one 120 subnets - range = ?
Who invented telescope?