Write a program to show damage in Earthquake Richter Scale
Not what you're looking for?
The National Earthquake Information Center has asked you to write a program for the following decision table to characterize an earthquake based on its Richter scale number.
Richter scale 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 buidings destroyed
Purchase this Solution
Solution Summary
The attached code is well documented for you to follow easily.
Following is how the output may look once executed. (>> output from the program, > input to the program)
>>Enter earth quake measure in Richter scale
>5
>> some damage
.
.
.
>>Enter earth quake measure in Richter scale
>9
>> catastrophe: most buildings destroyed
Solution Preview
The attached code is well documented for you to follow easily.
Following is how the ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
C# variables and classes
This quiz contains questions about C# classes and variables.
Basic Networking Questions
This quiz consists of some basic networking questions.