Question: For part 2 - Data Processing For this part you will build a data structure that keeps tract of every event type ( specifically the
For part Data Processing
For this part you will build a data structure that keeps tract of every event type specifically the field calltypefinaldesc, unless that
field is blank then use the calltypeoriginaldesc field You will keep with each event type the total number of calls, the number of
calls where the dispatch time is minutes or less, from to minutes, to minute, and over minutes, and the on scene times are
minutes or less, from to minutes, to minute, and over minutes. You will also selectively keep track of those times for either
neighborhoods or police districts. Specifically values from the analysisneighborhood field or the policedistrict field depending
on the command line parameters. To calculate dispatch time parse and subtract the receiveddatetime from the dispatchdatetime
To calculate the on scene time parse and subtract the enroutedatetime from the onscenedatetime
The output should be well formatted and columnar with clear headings. The event type should print our in alphabetical order. This is a
short example of what the output can look like:
Total Time was seconds
You my use any data structure you like to hold the data as it is being processed, but it must be global ie each thread will be adding
directly to it and mot merging at the end and you have to write the data structure code yourself, not using libraries. Note: using string
libraries for copying and comparing are okay
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
