Data visualizations are powerful tools to present information and convey patterns and relationships. Sometimes visualizations are charts or graphs, and other times they are more abstract pieces of art. Your goal is to create a visual representation relating at least two categories from your dataset that engages your viewer and encourages them to learn more about your chosen topic.
✅ TO DO: Use your knowledge of object-oriented programming, one-dimensional (1D) arrays, and algorithms to create your data visualization program:
Create at least two 1D arrays - Create at least two 1D arrays to store the data that will make up your visualization.
Note: You can go back to the datasets on this level to copy and paste the values you need in your project.
Implement one or more algorithms - Implement one or more algorithms that use two-way or multi-selection statements with compound Boolean expressions to analyze the data.
Use methods in the Math class - Use one or more methods in the Math class in your program, such as to perform calculations on the values in your dataset and display the results, choose random values from the dataset, or display images or shapes at random locations.
Create a visualization - Create an image or animation that conveys the story of the data by illustrating the patterns or relationships in the data.
Note: This may be abstract! Others do not necessarily need to know what the story or pattern is right away, but you do need to be able to explain it to them.
Document your code - Use comments to explain the purpose of the methods and code segments and note any preconditions and postconditions.
toStringArray(String filename) - reads the data from the specified filename and returns a 1D array of String objects containing the data
toIntArray(String filename) - reads the data from the specified filename and returns a 1D array of int values containing the data
toDoubleArray(String filename) - reads the data from the specified filename and returns a 1D array of double values containing the data