View the step-by-step solution to:

Question

I need help answering this CMIS 141 final project java programming assignment correctly. Any feedback would be

greatly appreciated and helpful. The assignment details are in the attachments and also below.


 Design a Java application that will read a file containing data related to the US. Crime statistics from 1994-2013. The description of the file is shown below.  The application should provide statistical results on the data including: 
a. Population growth in percentages from each consecutive year (e.g. 1994-1995 calculation is ((262803276 - 260327021)/260327021)*100 = 0.9512%, 1995-1996 would be ((265228572 - 262803276)/262803276)*100 = 0.9229%) b. Years where the maximum and minimum Murder rates occurred. c. Years where the maximum and minimum Robbery rates occurred. d. Total percentage change in Motor Vehicle Theft between the years 1998 and 2012.  e. Two (2) additional crime statistics results you add to enhance the application functionality.  
The following are some design criteria and specific requirements that need to be addressed:
a. Use command line arguments to send in the name of the US Crime Data file.  b. You are not allowed to modify the Crime.csv Statistic data file included in this assignment. c. Use arrays and Java classes to store the data. (Hint: You can and should create a USCrimeClass to store the fields. You can also have an Array of US Crime Objects.) d. Your design should include multiple classes to separate the functionality of the application. e. You should create separate methods for each of the required functionality. (e.g. getMaxMurderYear() will return the Year where the Murder rate was highest. ) f. A user-friendly and well-organized menu should be used for users to select which data to return.  A sample menu is shown in run example. You are free to enhance your design and you should add additional menu items and functionality. g. The menu system should be displayed at the command prompt, and continue to redisplay after results are returned or until Q is selected. If a user enters an invalid menu item, the system should redisplay the menu with a prompt asking them to enter a valid menu selection h. The application should keep track of the elapsed time (in seconds) between once the application starts and when the user quits the program. After the program is exited, the application should provide a prompt thanking the user for trying the US Crime Statistics program and providing the total time elapsed.
Here is sample run:
java TestUSCrime Crime.csv

********** Welcome to the US Crime Statistical Application **************************
Enter the number of the question you want answered.  Enter ‘Q’ to quit the program :
1. What were the percentages in population growth for each consecutive year from 1994 – 2013? 2. What year was the Murder rate the highest? 3. What year was the Murder rate the lowest? 4. What year was the Robbery rate the highest? 5. What year was the Robbery rate the lowest? 6. What was the total percentage change in Motor Vehicle Theft between 1998 and 2012? 7. What was [enter your first unique statistic here]? 8. What was [enter your second unique statistic here]? Q.    Quit the program 
Enter your selection: 2 
The Murder rate was highest in 1994
Enter the number of the question you want answered.  Enter ‘Q’ to quit the program :
1. What were the percentages in population growth for each consecutive year from 1994 – 2013? 2. What year was the Murder rate the highest? 3. What year was the Murder rate the lowest? 4. What year was the Robbery rate the highest? 5. What year was the Robbery rate the lowest? 6. What was the total percentage change in Motor Vehicle Theft between 1998 and 2012? 7. What was [enter your  first unique statistic here]? 8. What was [enter your second unique statistic here]? Q.    Quit the program 
Enter your selection: 5 
The Robbery rate was lowest in 2013
Enter the number of the question you want answered.  Enter ‘Q’ to quit the program :
1. What were the percentages in population growth for each consecutive year from 1994 – 2013? 2. What year was the Murder rate the highest? 3. What year was the Murder rate the lowest? 4. What year was the Robbery rate the highest? 5. What year was the Robbery rate the lowest? 6. What was the total percentage change in Motor Vehicle Theft between 1998 and 2012? 7. What was [enter your  first unique statistic here]? 8. What was [enter your second unique statistic here]? Q.    Quit the program 
Enter your selection: Q 
Thank you for trying the US Crimes Statistics Program.
Elapsed time in seconds was: 32

Submission requirements:
Your deliverables include all Java files (.java) and a single word (or PDF) document. The Java files should be named appropriately for your applications. Your word document should include screen shots showing the successful compiling and running of each application, and a detailed description of the test plan for each application. The test plan should include the input, expected output, actual output and if the test case passed or failed. Submit your files to the Final Project assignment area no later than the due date listed in the calendar.

US Crimes Data Description:
The attached Comma delimited file, named Crime.csv contains US Crime data from 1994 – 2013. The first line in the file contains the field names. (Note: Do not modify this file in anyway. You should use it as is for input for your application)
The US Crime data were obtained from this Web Site: 
https://www.fbi.gov/about-us/cjis/ucr/crime-in-the-u.s/2013/crime-in-the-u.s.2013/tables/1tabledatadecoverviewpdf/table_1_crime_in_the_united_states_by_volume_and_rate_pe r_100000_inhabitants_1994-2013.xls#overview





1 Final Project This assignment demonstrates your understanding of the concepts from the CMIS 141 class. This homework consists of 1 programming assignment worth 25 points. Before attempting this project, be sure you have completed all of the reading assignments, hands-on labs, discussions, and assignments to date. 1. (25 points) Design a Java application that will read a file containing data related to the US. Crime statistics from 1994-2013. The description of the file is shown below. The application should provide statistical results on the data including: a. Population growth in percentages from each consecutive year (e.g. 1994-1995 calculation is ((262803276 - 260327021)/260327021)*100 = 0.9512%, 1995-1996 would be ((265228572 - 262803276)/262803276)*100 = 0.9229%) b. Years where the maximum and minimum Murder rates occurred. c. Years where the maximum and minimum Robbery rates occurred. d. Total percentage change in Motor Vehicle Theft between the years 1998 and 2012. e. Two (2) additional crime statistics results you add to enhance the application functionality. The following are some design criteria and specific requirements that need to be addressed: a. Use command line arguments to send in the name of the US Crime Data file. b. You are not allowed to modify the Crime.csv Statistic data file included in this assignment. c. Use arrays and Java classes to store the data. (Hint: You can and should create a USCrimeClass to store the fields. You can also have an Array of US Crime Objects.) d. Your design should include multiple classes to separate the functionality of the application. e. You should create separate methods for each of the required functionality. (e.g. getMaxMurderYear() will return the Year where the Murder rate was highest. ) f. A user-friendly and well-organized menu should be used for users to select which data to return. A sample menu is shown in run example. You are free to enhance your design and you should add additional menu items and functionality. g. The menu system should be displayed at the command prompt, and continue to redisplay after results are returned or until Q is selected. If a user enters an invalid menu item, the system should redisplay the menu with a prompt asking them to enter a valid menu selection h. The application should keep track of the elapsed time (in seconds) between once the application starts and when the user quits the program. After the program is exited, the application should provide a prompt thanking the user for trying the US Crime Statistics program and providing the total time elapsed. Here is sample run: java TestUSCrime Crime.csv
Background image of page 1
2 ********** Welcome to the US Crime Statistical Application ************************** Enter the number of the question you want answered. Enter ‘Q’ to quit the program : 1. What were the percentages in population growth for each consecutive year from 1994 – 2013? 2. What year was the Murder rate the highest? 3. What year was the Murder rate the lowest? 4. What year was the Robbery rate the highest? 5. What year was the Robbery rate the lowest? 6. What was the total percentage change in Motor Vehicle Theft between 1998 and 2012? 7. What was [enter your first unique statistic here]? 8. What was [enter your second unique statistic here]? Q. Quit the program Enter your selection: 2 The Murder rate was highest in 1994 Enter the number of the question you want answered. Enter ‘Q’ to quit the program : 1. What were the percentages in population growth for each consecutive year from 1994 – 2013? 2. What year was the Murder rate the highest? 3. What year was the Murder rate the lowest? 4. What year was the Robbery rate the highest? 5. What year was the Robbery rate the lowest? 6. What was the total percentage change in Motor Vehicle Theft between 1998 and 2012? 7. What was [enter your first unique statistic here]? 8. What was [enter your second unique statistic here]? Q. Quit the program Enter your selection: 5 The Robbery rate was lowest in 2013 Enter the number of the question you want answered. Enter ‘Q’ to quit the program : 1. What were the percentages in population growth for each consecutive year from 1994 – 2013? 2. What year was the Murder rate the highest? 3. What year was the Murder rate the lowest? 4. What year was the Robbery rate the highest? 5. What year was the Robbery rate the lowest? 6. What was the total percentage change in Motor Vehicle Theft between 1998 and 2012? 7. What was [enter your first unique statistic here]? 8. What was [enter your second unique statistic here]? Q. Quit the program Enter your selection: Q Thank you for trying the US Crimes Statistics Program. Elapsed time in seconds was: 32
Background image of page 2
Show entire document
Year Populaton ViolenT cri ViolenT crime raMurder and nonnegligenT Murder and noRape 1994 260327021 1857670 713.6 23326 9 102216 1995 262803276 1798792 684.5 21606 8.2 97470 1996 265228572 1688540 636.6 19645 7.4 96252 1997 267783607 1636096 611 18208 6.8 96153 1998 270248003 1533887 567.6 16974 6.3 93144 1999 272690813 1426044 523 15522 5.7 89411 2000 281421906 1425486 506.5 15586 5.5 90178 2001 285317559 1439480 504.5 16037 5.6 90863 2002 287973924 1423677 494.4 16229 5.6 95235 2003 290788976 1383676 475.8 16528 5.7 93883 2004 293656842 1360088 463.2 16148 5.5 95089 2005 296507061 1390745 469 16740 5.6 94347 2006 299398484 1435123 479.3 17309 5.8 94472 2007 301621157 1422970 471.8 17128 5.7 92160 2008 304059724 1394461 458.6 16465 5.4 90750 2009 307006550 1325896 431.9 15399 5 89241 2010 309330219 1251248 404.5 14722 4.8 85593 2011 311587816 1206005 387.1 14661 4.7 84175 2012 313873685 1217057 387.8 14856 4.7 85141 2013 316128839 1163146 367.9 14196 4.5 79770
Background image of page 1
Rape rate Robbery Robbery raAggravatedAggravatedProperty c Property crBurglary Burglary raLarceny-th 39.3 618949 237.8 1113179 427.6 12131873 4660.2 2712774 1042.1 7879812 37.1 580509 220.9 1099207 418.3 12063935 4590.5 2593784 987 7997710 36.3 535594 201.9 1037049 391 11805323 4451 2506400 945 7904685 35.9 498534 186.2 1023201 382.1 11558475 4316.3 2460526 918.8 7743760 34.5 447186 165.5 976583 361.4 10951827 4052.5 2332735 863.2 7376311 32.8 409371 150.1 911740 334.3 10208334 3743.6 2100739 770.4 6955520 32 408016 145 911706 324 10182584 3618.3 2050992 728.8 6971590 31.8 423557 148.5 909023 318.6 10437189 3658.1 2116531 741.8 7092267 33.1 420806 146.1 891407 309.5 10455277 3630.6 2151252 747 7057379 32.3 414235 142.5 859030 295.4 10442862 3591.2 2154834 741 7026802 32.4 401470 136.7 847381 288.6 10319386 3514.1 2144446 730.3 6937089 31.8 417438 140.8 862220 290.8 10174754 3431.5 2155448 726.9 6783447 31.6 449246 150 874096 292 10019601 3346.6 2194993 733.1 6626363 30.6 447324 148.3 866358 287.2 9882212 3276.4 2190198 726.1 6591542 29.8 443563 145.9 843683 277.5 9774152 3214.6 2228887 733 6586206 29.1 408742 133.1 812514 264.7 9337060 3041.3 2203313 717.7 6338095 27.7 369089 119.3 781844 252.8 9112625 2945.9 2168459 701 6204601 27 354746 113.9 752423 241.5 9052743 2905.4 2185140 701.3 6151095 27.1 355051 113.1 762009 242.8 9001992 2868 2109932 672.2 6168874 25.2 345031 109.1 724149 229.1 8632512 2730.7 1928465 610 6004453
Background image of page 2
Show entire document
Sign up to view the entire interaction

Top Answer

View the full answer
USCrimeStatsApp.zip - Preview not available

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online