Need some help with emergency response class

This is the program we were assigned to do
(Project: Emergency Response Class) The North American emergency response service, 9-1-1, connects callers to a local Public Service Answering Point (PSAP). Traditionally, the PSAP would ask the caller for identification information—including the caller’s address, phone number and the nature of the emergency, then dispatch the appropriate emergency responders (such as the police, an ambulance or the fire department). Enhanced 9-1-1 (or E9-1-1) uses computers and databases to determine the caller’s physical address, directs the call to the nearest PSAP, and displays the caller’s phone number and address to the call taker. Wireless Enhanced 9-1-1 provides call takers with identification information for wireless calls. Rolled out in two phases, the first phase required carriers to provide the wireless phone number and the location of the cell site or base station transmitting the call. The second phase required carriers to provide the location of the caller (using technologies such as GPS). To learn more about 9-1-1, visit www.fcc.gov/pshs/services/911-services/Welcome.html and people.howstuffworks.com/9-1-1.htm.

An important part of creating a class is determining the class’s attributes (instance variables). For this class design exercise, research 9-1-1 services on the Internet. Then, design a class called Emergency that might be used in an object-oriented 9-1-1 emergency response system. List the attributes that an object of this class might use to represent the emergency. For example, the class might include information on who reported the emergency (including their phone number), the location of the emergency, the time of the report, the nature of the emergency, the type of response and the status of the response. The class attributes should completely describe the nature of the problem and what’s happening to resolve that problem.

How would I do something where you can input the problem either as for example, "Robbery" or "robbery". And I started the code but only could get the variables. Does it look like I am on the right track? If not could someone give me a general idea or pseudocode on how to set only the variables because I'm sure I can figure out the rest from there. I am still learning java so I am still at newbie level.

Well, for 30+ years I am a professional software engineer. Before that, when my wife was in graduate school, I was an emergency response volunteer EMT and rescue worker for the US Civil Defense. So, I do know something about what you are trying to do.

Break the problem down into smaller bits. What are the items you need to track?

Consider how they are related.

The date stuff is ancillary. Use a static/constant for the date format. That doesn't have much to do with the 911 call, other than how to present the date/time to a user.

Calendar? Why? Doesn't the current date encapsulate that?

You need a couple of support classes, which might be sub-classes of "Emergency", but honestly, that is stretching it a bit. You need a class for "reporting entity", data for "type of emergency" - an enum may (or may not) be appropriate for that information, responding service (may, or may not be another class), location of the emergency, severity and type of the emergency (life-threatening, property damage, etc), and the list goes on.

So, you need to clearly think about all the information this needs to encapsulate, and which parts of that are best reflected by local data entities, and which of those entities are complex enough to have their own class.

You have more work to do! Work on that, and then report back with what you have and we can help you move forward.

Alright so the variables I have just keep them but make a subclass that calls for them? Also, for the info I would make the user input that? And sorry if I'm asking the same thing or obvious questions. I'm not asking for anyone to do my work :) I just like being able to understand and get a general idea.

For the information yes, it will be user input. You can use the scanner for instance
for instance if you defined variable name as n

System.out.println("Please enter your name");
String n = scan.next();

then just make sure whatever you call your array, you're having it print out at the end to display the information you entered. since you'll have subclasses, and using inheritance most likely use the String toString

Rubberman, I'll get right on the coding as soon as I get back from work. But I just want to ask, would it be better to make a switch statement and have the user choose the number that corresponds with the nature of the emergency and severity or have them just type it out and press a number (1 not severe to 5 severe) for the severity?

Is there a way I can make it so depending on the type of emergency the status type will be different (e.g. inputting injury and the status says an ambulance is on its way or if you input robbery the status says a poilce car is on its way)?

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...