What were the percentages in population growth

Assignment Help JAVA Programming
Reference no: EM131591935

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.

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

********** 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

Reference no: EM131591935

Questions Cloud

How much will the ho policy pay for loss : How much will the HO policy pay for this loss?
Prepare the journal entry required by frozen delight : Frozen Delight, Inc. charges an initial franchise fee of $75,000 for the right to operate as a franchisee of Frozen Delight.
Compliance with the federal wage-and-hour laws : An investigation by the U. S. Department of Labor (DOL) of the organization's compliance with the federal wage-and-hour laws:
Calculate the herfindahl-hirschman index : There is an industry with 5 firms. Calculate the Herfindahl-Hirschman Index (HHI) for this industry
What were the percentages in population growth : What were the percentages in population growth for each consecutive year from 1994 - 2013? 2. What year was the Murder rate the highest
Why was kodak so slow to adapt to the changing world : Q1. Why was Kodak so slow to adapt to the changing world? Q2. What could the management at Kodak have done differently?
What amount of gross profit will be recognized in each year : Schuss Corporation sold equipment to Potsdam Company for $20,000. The equipment is on Schuss's books at a net amount of $13,000. Schuss collected $10,000.
German legal system might eventually take the terrorists : The German legal system might eventually take the terrorists and their leader to trial, but first there was the need to end the hostage situation
What is golden weighted average cost of capital : You need to estimate the equity beta for Golden Clothiers, Inc. Golden's debt-to-equity ratio is 77%, what is Golden's weighted average cost of capital?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implementation the two classes

Program Specifications: In the new implementation, the two classes, Student and Grades, are defined with the following operations/methods.

  Write a program computehalf.java

Write a program ComputeHalf.Java that asks the user to a string. Write a method secondHalf that returns the second half of the input string.

  Cloud computing outline

Cloud computing is one of the biggest catchphrases in the Information Technology world. Virtualization is the core technology behind cloud resource sharing. The deployment strategy involved in a cloud environment includes the components of grid co..

  Subtract the immediate constant

Call a procedure at 5120, stacking the return address Subtract the immediate constant 16 from the stack pointer Compare the actual parameter to the immediate constant 4 Jump if equal to 5152

  You have in your program an arraylist which contains

you have in your program an arraylist that contains employee salaries double type in arbitrary order. you need to

  Paper on mobility-cdma and gsm

Discuss a minimum of three mobile web applications that are familiar or that you used regularly.

  Write a very simple data maintenance java program

In this assignment, you will write a very simple data maintenance Java program for a small computer retail store (like Staples).

  What is the smallest exponent

In storing number in a string of 16 bits, the first bit is used for the sign of the number, and the next 5 bits store the exponent plus the bias, and the remaining 10 bits store the mantissa. The bias is 15.

  Rna hairpins and mirror box drawings

When the program starts up, it should draw a vertical line from the top of the screen to the bot- tom that cleanly divides the window in half. This makes it easier for the user to see the mirror effect.

  What is the benefit of using layout managers

What is the benefit of using layout managers? When a mouse event is generated how is the location of the click point determined? What layout manager should you use so that every component occupies the same size in the container?

  Program that decrypts the file produced by above program

Write another Java program that decrypts the file produced by above program. The decryption program should read the contents of the coded file, restore the data to its original state, and write it to another file.

  Develop a java program

Develop a Java program which, given the width, length and depth (in metres), of a swimming pool, determines and outputs.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd