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 are pulsars?
What is one light hour?
The year in which magnetic observations were started in mumbai and thiruvananthapuram?
Which are the important pulsating nebulae?
Which is the first atomic submarine of india?
A man is travelling with the speed of 10m/min across the river to the opposite bank.The river water flows at the speed of 1m/s.Since the water flows at the speed higher than the boatsman, he would definitley reach the opposite river bank in a slant path.What is the length of the path he travelled?. The river is 10m wide. Please give me solution to tha above probelm. Thanks in advance
When was the atomic energy regulatory board ( aerb ) constituted?
Which scientist made detailed study on novae?
What is length and weight of arihant?
What is voltage? ?? What type of of show voltage. ?? Practillay how's voltage?
Describe the evolution of science and its impact on society
On what basis Friability limit NMT 1.0%w/w is recommended. what is impact on formulation if this limit exceeds.
Who is the oldest cosmonaut?
Why we use nhexane inplace of hexane in mobilepase preparation
what are the advantages and disadvantages of rational knowledge?