Categorize the damage caused by an earthquake given its Richter scale intensity
What will be an ideal response?
```
int main()
{
double rnumber;
cout << "Enter a Richter Scale Number: ";
cin << rnumber;
if( rnumber <= 6.5)
cout << " Catastrophe: most buildings destroyed.";
else if( rnumber <= 6.0)
cout << "Disaster: houses and buildings may collapse.";
else if( rnumber <= 5.5)
cout << " Serious damage: walls may crack or fall.";
else if( rnumber <= 5.0)
cout << " Some damage.";;
else
cout << " Little or no damage.";
return 0;
}
```
Computer Science & Information Technology
You might also like to view...
A virus signature is a portion of virus code that is unique to a particular computer virus
Indicate whether the statement is true or false
Computer Science & Information Technology
What is the task of an Ethernet switch? What tables does it maintain?
What will be an ideal response?
Computer Science & Information Technology