Introductory Programming
I need help for this final project and I don’t have a lot of time. I need this project in the next 10 hours.
1
Final Project
This assignment demonstrates your understanding of the concepts from the CMIS 141 class.
Before attempting this project, be sure you have completed all of the reading assignments, hands-on
labs, discussions, and assignments to date.
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 at the end of this file. 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.
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 should also use Java classes to their full extent to include multiple methods and at
least two classes
c. You are not allowed to modify the Crime.csv Statistic data file included in this
assignment.
d. 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.)
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.
i. Hint: When reading the Crimes file, read one line at a time (See ReadEmail.java) and
then within the loop parse each line into the USCrimeClass fields and then store that
USCrimeClass Object into an array. Note you can use String.split(“,”) to split the CSV line
into a the fields for setting the USCrimeClass Object.
Here is sample run:
java TestUSCrime Crime.csv
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?
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?
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?
Q. Quit the program
Enter your selection: Q
Thank you for trying the US Crimes Statistics Program.
Elapsed time in seconds was: 32
The google recommended Java style guide, provided as link in the week 2 content, should be used to
format and document your code. Specifically, the following style guide attributes should be addressed:
Header comments include filename, author, date and brief purpose of the program.
In-line comments used to describe major functionality of the code.
Meaningful variable names and prompts applied.
3
Class names are written in UpperCamelCase.
Variable names are written in lowerCamelCase.
Constant names are in written in All Capitals.
Braces use K&R style.
Submission requirements
Deliverables include all Java files (.java) and a single word (or PDF) document. The Java files should be
named appropriately for your applications. The word (or PDF) document should include screen captures
showing the successful compiling and running of each of the test cases. Each screen capture should be
properly labeled clearly indicated what the screen capture represents. The test cases table should be
included in your word or PDF document and properly labeled as well.
Submit your files to the Final Project area no later than the due date listed in your LEO classroom. You
should include your name and FP in your word (or PDF) file submitted (e.g. firstnamelastnameFP x or
firstnamelastnameFP )
Grading Rubric:
The following grading rubric will be used to determine your grade:
Attribute Meets Does not meet
Crimes Class 15 points
Population growth in
percentages is calculated from
each consecutive year
Years where the maximum and
minimum Murder rates
occurred are calculated.
Years where the maximum and
minimum Robbery rates
occurred are calculated.
Command line arguments to
send in the name of the US
Crime Data file were used.
Java classes to their full extent
to include multiple methods
and at least two classes were
used.
0 points
Population growth in
percentages is not calculated
from each consecutive year
Years where the maximum and
minimum Murder rates
occurred are not calculated.
Years where the maximum and
minimum Robbery rates
occurred are not calculated.
Command line arguments to
send in the name of the US
Crime Data file are not used.
Java classes to their full extent
to include multiple methods
and at least two classes are not
used.
4
Crime.csv Statistic data file was
not modified.
Use arrays and Java classes
were used to store the data.
Creates separate methods for
each of the required
functionality.
A user-friendly and well-
organized menu was used.
The menu system is displayed at
the command prompt.
The menu system continues to
redisplay after results are
returned or until Q is selected.
If a user enters an invalid menu
item, the system redisplays the
menu with a prompt asking
them to enter a valid menu
selection.
The application keeps track of
the elapsed time (in seconds)
between the application start
and when the user quits the
program.
After the program is exited, the
application provides a prompt
thanking the user for trying the
US Crime Statistics program and
providing the total time elapsed
in seconds.
Crime.csv Statistic data file was
modified.
Use arrays and Java classes are
not used to store the data.
Does not create separate
methods for each of the
required functionality.
A user-friendly and well-
organized menu was not used.
The menu system is not
displayed at the command
prompt.
The menu system does not
continue to redisplay after
results are returned or until Q is
selected.
If a user enters an invalid menu
item, the system does not
redisplay the menu with a
prompt asking them to enter a
valid menu selection.
The application does not keep
track of the elapsed time (in
seconds) between the
application start and when the
user quits the program.
After the program is exited, the
application does not provides a
prompt thanking the user for
trying the US Crime Statistics
program and providing the total
time elapsed in seconds.
Test Cases 5 points
A minimum of 3 test cases was
used in the form of table with
columns indicating the input
values, expected output, actual
output and if the test case
passed or failed. The table
0 points
No test cases were provided.
5
should contains 4 columns with
appropriate labels and a row for
each test case.
Test cases were included in the
supporting word or PDF
documentation.
Documentation and Style guide 5 points
Screen captures were provided
and labeled for compiling your
code, and running each of your
3 test cases.
Header comments include
filename, author, date and brief
purpose of the program.
In-line comments used to
describe major functionality of
the code.
Meaningful variable names and
prompts applied.
Class names are written in
UpperCamelCase.
Variable names are written in
lowerCamelCase.
Constant names are in written
in All Capitals.
Braces use K&R style.
0 points
No documentation included
Java style guide was not used to
prepare the Java code.
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
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_per_100000_inhabitants_1994-2013.xls#overview
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_per_100000_inhabitants_1994-2013.xls#overview
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_per_100000_inhabitants_1994-2013.xls#overview
Year | Population | Violent crime | Violent crime rate | Murder and nonnegligent manslaughter | Murder and nonnegligent manslaughter rate | Rape | Rape rate | Robbery | Robbery rate | Aggravated assault | Aggravated assault rate | Property crime | Property crime rate | Burglary | Burglary rate | Larceny-theft | Larceny-theft rate | Motor vehicle theft | Motor vehicle theft rate | |||||
1994 | 260327021 | 1857670 | 713.60 | 23326 | 9.00 | 102216 | 39.30 | 618949 | 237.80 | 1113179 | 427.60 | 12131873 | 4660.20 | 2712774 | 1042.10 | 7879812 | 3026.90 | 1539287 | 591.30 | |||||
1995 | 262803276 | 1798792 | 68 | 4.50 | 21606 | 8.20 | 97470 | 37.10 | 580509 | 220.90 | 1099207 | 418.30 | 12063935 | 4590.50 | 2593784 | 987.00 | 7997710 | 3043.20 | 1472441 | 560.30 | ||||
1996 | 265228572 | 1688540 | 636.60 | 19645 | 7.40 | 96252 | 3 | 6.30 | 535594 | 201.90 | 1037049 | 391.00 | 11805323 | 4451.00 | 2506400 | 94 | 5.00 | 7904685 | 2980.30 | 1394238 | 52 | 5.70 | ||
1997 | 267783607 | 1636096 | 611.00 | 18208 | 6.80 | 96153 | 35.90 | 498534 | 186.20 | 1023201 | 382.10 | 11558475 | 4316.30 | 2460526 | 918.80 | 7743760 | 2891.80 | 1354189 | 505.70 | |||||
1998 | 270248003 | 1533887 | 567.60 | 16974 | 93144 | 34.50 | 447186 | 16 | 5.50 | 976583 | 361.40 | 10951827 | 4052.50 | 2332735 | 863.20 | 7376311 | 2729.50 | 1242781 | 459.90 | |||||
1999 | 272690813 | 1426044 | 523.00 | 15522 | 89411 | 32.80 | 409371 | 150.10 | 911740 | 334.30 | 10208334 | 3743.60 | 2100739 | 770.40 | 6955520 | 2550.70 | 1152075 | 422.50 | ||||||
2000 | 281421906 | 1425486 | 506.50 | 15586 | 90178 | 32.00 | 408016 | 145.00 | 911706 | 324.00 | 10182584 | 3618.30 | 2050992 | 728.80 | 6971590 | 2477.30 | 1160002 | 412.20 | ||||||
2001 | 285317559 | 1439480 | 504.50 | 16037 | 5.60 | 90863 | 31.80 | 423557 | 148.50 | 909023 | 318.60 | 10437189 | 3658.10 | 2116531 | 741.80 | 7092267 | 2485.70 | 1228391 | 430.50 | |||||
2002 | 287973924 | 1423677 | 494.40 | 16229 | 95235 | 33.10 | 420806 | 146.10 | 891407 | 309.50 | 10455277 | 36 | 30.60 | 2151252 | 747.00 | 7057379 | 2450.70 | 1246646 | 432.90 | |||||
2003 | 290788976 | 1383676 | 47 | 5.80 | 16528 | 93883 | 32.30 | 414235 | 142.50 | 859030 | 29 | 5.40 | 10442862 | 3591.20 | 2154834 | 741.00 | 7026802 | 2416.50 | 1261226 | 433.70 | ||||
2004 | 293656842 | 1360088 | 463.20 | 16148 | 95089 | 32.40 | 401470 | 136.70 | 847381 | 288.60 | 10319386 | 3514.10 | 2144446 | 730.30 | 6937089 | 2362.30 | 1237851 | 421.50 | ||||||
2005 | 296507061 | 1390745 | 469.00 | 16740 | 94347 | 417438 | 140.80 | 862220 | 290.80 | 10174754 | 3431.50 | 2155448 | 726.90 | 6783447 | 2287.80 | 1235859 | 416.80 | |||||||
2006 | 299398484 | 1435123 | 479.30 | 17309 | 94472 | 31.60 | 449246 | 150.00 | 874096 | 292.00 | 10019601 | 3346.60 | 2194993 | 733.10 | 6626363 | 2213.20 | 1198245 | 400.20 | ||||||
2007 | 301621157 | 1422970 | 471.80 | 17128 | 92160 | 447324 | 148.30 | 866358 | 287.20 | 9882212 | 3276.40 | 2190198 | 726.10 | 6591542 | 2185.40 | 1100472 | 364.90 | |||||||
2008 | 304059724 | 1394461 | 458.60 | 16465 | 90750 | 29.80 | 443563 | 145.90 | 843683 | 277.50 | 9774152 | 3214.60 | 2228887 | 733.00 | 6586206 | 2166.10 | 959059 | 315.40 | ||||||
2009 | 307006550 | 1325896 | 431.90 | 15399 | 89241 | 29.10 | 408742 | 133.10 | 812514 | 26 | 4.70 | 9337060 | 3041.30 | 2203313 | 717.70 | 6338095 | 2064.50 | 795652 | 259.20 | |||||
2010 | 309330219 | 1251248 | 404.50 | 14722 | 4.80 | 85593 | 27.70 | 369089 | 119.30 | 781844 | 252.80 | 9112625 | 2945.90 | 2168459 | 701.00 | 6204601 | 2005.80 | 739565 | 239.10 | |||||
2011 | 311587816 | 1206005 | 387.10 | 14661 | 84175 | 27.00 | 354746 | 113.90 | 752423 | 241.50 | 9052743 | 2905.40 | 2185140 | 701.30 | 6151095 | 1974.10 | 716508 | 230.00 | ||||||
2012 | 313873685 | 1217057 | 387.80 | 14856 | 85141 | 27.10 | 355051 | 113.10 | 762009 | 242.80 | 9001992 | 2868.00 | 2109932 | 672.20 | 6168874 | 1965.40 | 723186 | 230.40 | ||||||
2013 | 316128839 | 1163146 | 367.90 | 14196 | 79770 | 25.20 | 345031 | 109.10 | 724149 | 229.10 | 8632512 | 2730.70 | 1928465 | 610.00 | 6004453 | 1899.40 | 699594 | 221.30 |
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics