How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask lifesaver Your Own Question

lifesaver
lifesaver, Computer Software Engineer
Category: Programming
Satisfied Customers: 5962
Experience:  Several years of intensive programming and application development experience in various platforms.
16528259
Type Your Programming Question Here...
lifesaver is online now
A new question is answered every 9 seconds

The National Earthquake Information Center has asked you to

Resolved Question:

Use an IDE to develop the work and save it as assignment 2

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.
Submitted: 7 years ago.
Category: Programming
Expert:  Engineer John C. replied 7 years ago.
Do you need this programmed in java? I can help you. Thanks, XXXXX XXXXX
Expert:  lifesaver replied 7 years ago.

I think the program requires C.

 

Here's your program.

 

http://pastebin.ca/1624565

 

Hope this helps/.

Customer: replied 7 years ago.
How I can create the link on my document? I'm new in this.
Expert:  lifesaver replied 7 years ago.

Which document are you referring to?

 

If you wnat to download the c file here's the link:-

 

http://rapidshare.com/files/294148959/earthquake.c.html

 

 

 

lifesaver, Computer Software Engineer
Category: Programming
Satisfied Customers: 5962
Experience: Several years of intensive programming and application development experience in various platforms.
lifesaver and 2 other Programming Specialists are ready to help you
Customer: replied 7 years ago.
Sorry like I said I'm new in this. The instructor want us to use an IDE. How I can create one?
Expert:  lifesaver replied 7 years ago.
Which programming language are you studying?
Customer: replied 7 years ago.
C
Expert:  lifesaver replied 7 years ago.

Yes the program is in C.

 

Note the .c extension.

 

I developed it in visual C 2008.

 

There are several other iDE's available like dev C++,Miracle C.

 

Related Programming Questions