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 |
Detergents used for cleaning clothes and utensils contain 1 Nitrates 2 Bicarbonates 3 Sulphonates 4 Bismutnates
The major ingredient of leather is 1 Carbohydrate 2 Collagen 3 Polymer 4 Nucleic acid
A mixture of iron filings and sand can be separated by 1 Heating 2 Sublimation 3 Hand picking 4 Magnetic separation
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
Which of the following is the lightest gas? 1 Nitrogen 2 Hydrogen 3 Ammonia 4 Carbon dioxide
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.
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
How many colours the sunlight spectrum has ? 1 Five 2 Three 3 Seven 4 Nine
Which of the following fertilizers leaves acidic residue? 1 Urea 2 Ammonium phosphate 3 Ammonium sulphate 4 None of these
Soap is a mixture of sodium or potassium salts of 1 Monocarboxylic acids 2 Glycerol’s 3 Dicarboxylic acids 4 Tricarboxylic acids
what is composition of fizzy drinks
need for proper earthing