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 &#8804; n <
5.5
Some damage

5.5 &#8804; n <
6.5
Serious damage: walls may crack or fall

6.5 &#8804; 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.



The National Earthquake Information Center has asked you to write a program implementing the follo..

Answer / prince

no need of changing that we know that this ranges produce
damages

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More General Science Interview Questions

Detergents used for cleaning clothes and utensils contain 1 Nitrates 2 Bicarbonates 3 Sulphonates 4 Bismutnates

2 Answers  


The major ingredient of leather is 1 Carbohydrate 2 Collagen 3 Polymer 4 Nucleic acid

3 Answers  


A mixture of iron filings and sand can be separated by 1 Heating 2 Sublimation 3 Hand picking 4 Magnetic separation

1 Answers  


In which type of rocks re metals like gold and copper mostly found? 1 Old igneous 2 Old sedimentary 3 Old metamorphic 4 New metamorphic

3 Answers  


Which of the following is the lightest gas? 1 Nitrogen 2 Hydrogen 3 Ammonia 4 Carbon dioxide

4 Answers  






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.

0 Answers   Logica CMG,


The difference between a nuclear reactor and an atom bomb is that 1 No chain reaction takes place in nuclear reactor while in the atomic bomb there is a chain reaction 2 No chain reaction takes place in atomic bomb while it takes place in a nuclear reactor 3 The chain reaction in nuclear reactor is controlled 4 None of these

1 Answers  


How many colours the sunlight spectrum has ? 1 Five 2 Three 3 Seven 4 Nine

2 Answers   Siscom,


Which of the following fertilizers leaves acidic residue? 1 Urea 2 Ammonium phosphate 3 Ammonium sulphate 4 None of these

1 Answers  


Soap is a mixture of sodium or potassium salts of 1 Monocarboxylic acids 2 Glycerol’s 3 Dicarboxylic acids 4 Tricarboxylic acids

1 Answers  


what is composition of fizzy drinks

0 Answers  


need for proper earthing

2 Answers  


Categories