Question: In this project you will write a program that processes raw data, counting occurrences for certain categories, and displays the results as a histogram. You
In this project you will write a program that processes raw data, counting occurrences for certain categories, and displays the results as a histogram. You can choose the type of data. Use real data if possible, but if necessary you can make up the data.
Here are 3 sample projects. You can do something similar, but you need to use different data & corresponding analysis.
drive-time-data.jar - The data for this project is how long it takes to drive from home to work each morning. The driver recorded times (in minutes) over the course of 4 weeks. The program analyzes the data by breaking it into categories (such as < 30 minutes, 30-40 minutes, etc.), and displays a histogram showing frequency counts for each category.
children-data.jar - This project deals with survey data in which adults were asked how many children they have. The data is analyzed and displayed as a histogram for common numbers of children (0, 1, 2, etc.) with a final category for 5+.
favorite-color-data.jar - In this project a number of people were polled as to their favorite color. The program analyzes the data and displays a histogram showing the most popular favorite colors.
Your project should follow the same structure as the sample projects:
At least 2 classes, one for data and one for display.
An ArrayList collection for the raw data.
An array for the histogram.
A loop that processes the raw data and fills in the array with counts for the histogram.
In addition, your project should display the histogram using symbols for the frequency counts. (This is not shown in the sample projects.) For example, if the frequency count is 5 for a given category, display 5 asterisks: *****. If applied to the favorite color sample project, the histogram output might look like this:
Blue: 1 * Green: 2 ** Red: 4 **** Yellow: 0 Other: 2 **
As usual:
Use good design and style (Appendix J) as well as good javadoc documentation including @param and @return tags.
This needs to be separate data from the jar file. Making data up is fine too. I need to create something like the drive time data program but it needs to be a different program. We're not editing it. Thank you.
https://online.pcc.edu/content/enforced/224696-30849.201803/lesson-07/drive-time-data.jar?_&d2lSessionVal=uHJDZub2E6ELWluegq5Z9d4eN&ou=224696
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
